Skip to content Skip to sidebar Skip to footer

Settextviewtext Not Updating Widget

Shown below is a simplified version of my class. I am having trouble in the onReceive method which isn't updating the widget TextView. It shows the correct information in the log

Solution 1:

Found the answer. After calling the remoteViews.setTextViewText you need to update the widget with a call to updateAppWidget. The code I added is shown below.

AppWidgetManager manager = AppWidgetManager.getInstance(context);
manager.updateAppWidget(thisWidget, remoteViews);

Post a Comment for "Settextviewtext Not Updating Widget"