I just found this thread that also confirms that it's a Sprint Hero
bug:

http://groups.google.com/group/android-developers/browse_thread/thread/554f72f397a8539f/722034a5aca418c6?lnk=gst&q=AppWidget#722034a5aca418c6



On 31 Dec 2009, 23:37, Kaj Bjurman <[email protected]> wrote:
> Hi,
>
> I have a strange problem, on a few devices. I have developed anAppWidget, 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to