on Update
Called in response to the ACTION_APPWIDGET_UPDATE broadcast when this AppWidget provider is being asked to provide RemoteViews for a set of AppWidgets. Override this method to implement your own AppWidget functionality.
Parameters
context
The Context in which this receiver is running.
app Widget Manager
A android.appwidget.AppWidgetManager object you can call updateAppWidget on.
app Widget Ids
The appWidgetIds for which an update is needed. Note that this may be all of the AppWidget instances for this provider, or just a subset of them.
See also
android. appwidget. App Widget Manager#ACTION_APPWIDGET_UPDATE