Answer the question
In order to leave comments, you need to log in
Why might the widget from the Activity not be updated?
There is a widget. It is normally created, the configurator opens and the configurator settings are successfully applied. However, when I then reopen the activity configurator, I can't get the widget to update after saving the settings. Although I call at the end
appWidgetManager.updateAppWidget(widgetId, remoteViews);
and even send after ACTION_APPWIDGET_UPDATE:appWidgetManager.updateAppWidget(widgetId, remoteViews);
Intent update = new Intent();
update.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
update.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, new int[] {widgetId});
update.setData(Uri.parse(update.toUri(Intent.URI_INTENT_SCHEME)));
context.sendBroadcast(update);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question