开发者

AppWidget only updates once

开发者 https://www.devze.com 2023-01-05 05:46 出处:网络
I have a problem with an appwidget. It doesn\'t have a configura开发者_开发百科tion activity. When I set android:updatePeriodMillis=\"10000\" ( know this shouldn\'t be done but it\'s just for testing)

I have a problem with an appwidget. It doesn't have a configura开发者_开发百科tion activity. When I set android:updatePeriodMillis="10000" ( know this shouldn't be done but it's just for testing) in the emulator the onUpdate(...) function is called every 10 seconds. But when i install my app on my real phone (motorola milestone) onUpdate(...) is only called when I add the widget to the home screen. And never again. Any ideas why this happens on the real device but not in the emulator?


What Sdk are u using?

since Android sdk 1.6 the widget update minimum period is 30 minutes.

0

精彩评论

暂无评论...
验证码 换一张
取 消