This is a bug in Launcher2. Actually, a few of them, appearing in various cases. Some of them got fixed (I forget which and when - you can check http://b.android.com), some others still aren't, it seems. In any case, them being fixed now doesn't help when running on an older version of Android.

The only solution I found is to track validity state for each widget id. It's easy to do if you already have a config activity.

http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/

-- Kostya

04.03.2011 21:14, b_t пишет:
Hi,

There are two ways to create "phantom" widgets:

- try to add a new widget, configuration screen appears, canceling
widget creation
- try to add a new widget, configuration screen appears, save the
widget, there is no place in home screen, canceling

After these steps a new appwidget was created and exists in the
background, but it isn't visible anywhere.
In the first case appwidget isn't configured, but in the second it is.

When I get widgets for my provider this appwidget is returned.

Nor the app and the user can remove this appwidget.

What cause this bug? The OS itself?

What can I do to get rid of these widgets without uninstalling my app?

Thanks,
Tamás



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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

Reply via email to