I have an application with some AppWidgets. I’m storing some information about every widget including its appWidgetId inside a database – I need this information to properly update every widget. The problem is that after the device is rebooted I can’t address these appWidgetIds anymore, as it seems that they change their values. How can I overcome this problem? Thanks in advance.
I have an application with some AppWidget s. I’m storing some information about every
Share
It looks like only on certain devices the appwidget IDs change on reboot (due to a bug). See this thread.
I looked at the Android source. The appwidget IDs are indeed persisted in a file at
/data/system/appwidgets.xml. Perhaps your device has a bug as mentioned in the thread above.I can’t think of a suitable work-around.