I have the following code in my AppWidgetProvider
class.
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
Log.i("Custom", "Update");
}
@Override
public void onReceive(Context context, Intent intent) {
Log.i("Custom", "Recieve");
}
If I comment out the onReceive
method the onUpdate
method will be invoked each time I add the widget to the homescreen, if I do not it does not run. Any thoughts?