Hi, I have a strange problem, on a few devices. I have developed an AppWidget, and it uses a database to store the configuration for each instance of the widget. The widget id is the key in the database.
Everything works on most devices, but I got a bug report a couple of days ago. A user said that the widget never worked after reboot. The user who was very helpful sent me a log from his phone, and I could then see that the widget got a new id each time he did a reboot. The log says this about his device (A Sprint Hero in US): Device model: HERO200 Firmware version: 1.5 Kernel version: 2.6.27-533ce29d htc-ker...@and18-2 ) #742 PREEMPT Fri Aug 28 21:59:31 CST 2009 Build number: 1.56.651.2 He can reproduce the problem on his friends device as well, but I have never seen the problem with HTC Hero/Magic here in Europe. Something about the code. onUpdate in my widget class gets invoked after reboot. The integer array with widget id:s does e.g say that only one widget exists, and that it has id 5. I then try to execute: AppWidgetProviderInfo info = appWidgetManager.getAppWidgetInfo (widgetId); and get null back, so I query for all ids: int[] ids = appWidgetManager.getAppWidgetIds(new ComponentName (PACKAGE_NAME, className)); and get back an array that says that a widget with id 6 exists. (The new id is always 1 larger than before reboot) What to do? Is this a known bug? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en