1 year ago
#136550
Ondřej John
onUpdate() callback not called for app widget after application update
I have developed a simple Android application containing a widget showing the current location, the full code is published on GitHub. I implemented the application according to the official documentation from Google, but I encountered a strange problem - the onUpdate()
function within the AppWidgetProvider
stops being called periodically after the application is updated. The call occurs only once, immediately after the update, after which the function is never called again, which logically causes the widget to freeze. Until the application is updated, everything works fine and onUpdate()
is called as often as specified by the updatePeriodMillis
parameter.
I have tested the behaviour on different system versions, emulators and real devices and the same problem has always occurred. I have other applications containing the widget where the same problem is present too. I have no idea what the issue is, could someone please show me what I have missed?
android
widget
android-appwidget
appwidgetprovider
0 Answers
Your Answer