I have a widget in my app and it gets screwed up (one of it’s resources, a counter, has to be visible only if greater than 0 and it does not react anymore to a press) every time I install/remove/update a 3rd party app because the onUpdate() method probably gets called and the code I have written is not executed properly.
It is certain that the AppWidgetManager reacts to the following intents:
android.intent.action.PACKAGE_ADDED
android.intent.action.PACKAGE_REMOVED
android.intent.action.PACKAGE_RESTARTED
But how can I make the widget not react to such intents, it is not even registered for them in the manifest?
try adding those actions to the manifest .. and avoid reacting to them in the
onReceivemethod, it’s somehow trivial solution but it will do !