Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppWidget only updates once

I have a problem with an appwidget. It doesn't have a configuration 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?

like image 423
Goddchen Avatar asked Jun 11 '26 23:06

Goddchen


1 Answers

What Sdk are u using?

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

like image 148
Jorgesys Avatar answered Jun 13 '26 13:06

Jorgesys



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!