views:

34

answers:

1

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