The AppWidget framework should call and request an update from you during the boot process automatically--that is, you don't need to listen for the BOOT broadcast on your own.
Are there any relevant exceptions in logcat during the update? You might run into issues if you're making a web request during the boot before the network is available. (Your update might be failing because it doesn't have network yet.) You could solve by scheduling another alarm one minute in the future, for up to three possible attempts. (Having it wake up every minute when the user is in airplane mode would be bad, lol.) The way I implemented this in my forecast widget was to cache the forecast values in a local database for up to three hours, and only replace with updated values when a network request was successful. http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/UpdateService.java#200 j On Wed, May 6, 2009 at 6:40 PM, pboyd04 <[email protected]> wrote: > > I've written an appwidget to display some basic weather data on the > home screen. The only real issue that I have is that the appwidget > doesn't get updated on startup. It just displays the default layout > and never seems to update. Is there some way to force an update on > startup, preferably after a data connection is available? > > Thanks, > Patrick > > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

