I know it's possible, but I can't figure out a way to trigger an update of my widget from the main activity. Isn't there some general intent I can broadcast?
A:
Just get an AppWidgetManager
instance and update it directly. Or, if you are using an IntentService
to do the updates, call startService()
on the IntentService
. The AppWidgetProvider
is a way to update the app widget, but it is not the only way.
CommonsWare
2010-08-11 12:10:57