24.02.2011 23:23, Jake Colman пишет:
My app is structured to use an IntentService to update an appwidget's RemoteViews. The appwidget sets up a repeating alarm that, when triggered, causes the appwidget to start the IntentService. If the phone is rebooted, the widget never gets repainted. Is there a design paradigm that I am missing here to allow for my widget to survive a reboot?
Alarms are lost on reboot, so there is nothing to start your service. Make a receiver for this broadcast: http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED to kick-start your code after a reboot. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en