I have a simple appwidget, and I want to update it when an action occurs in action (in the same application). in onUpdate (), I immediately update the widget, which works fine. In my activity, I call the same static update method in my application, which is called in onUpdate () to update the views. widget is not updating.
I can trace the code directly in the AppWidgetManager.updateAppWidget () method, and all this is good, but the widget does not update.
The only possible difference that I see is that the context object passed to my static update method is different when it is called from the activity context or the context of the appwidget onUpdate () method. however there are many examples on the Internet, so I expect this to work.
android android-appwidget
Jeffrey blattman
source share