Hi Mark, Thanks for your reply. I do know how to update a widget when the user interacts with it, for example, when a user presses a button on the widget itself. I wanted to know if it is possible to update a widget from *outside* the AppWidgetProvider class, say, from a broadcast receiver that is examining text messages, for example.
Is there a way to load an Intent up with the necessary information and broadcast it in such a way that it will cause a widget to update? On Sep 21, 11:01 pm, "Mark Murphy" <[email protected]> wrote: > > It seems like > > the *only* way awidgetcan be updated is upon its interval, or when > > the user interacts with it. > > That is is incorrect. > > > Is there any way to update awidgetupon a system event? > > The same way you update awidgetany other time -- call updateAppWidget() > on your AppWidgetManager. > > Here is a sample application that updates awidgeteither due to the > updateTimeMillis value or due to a user clicking a refresh button on > thewidgetitself: > > http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/Twit... > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android App Developer Books:http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

