Hi,

yes I've already use this trick and it is good for the first case,
when the widget hasn't been configured yet because of canceling it.

But it doesn't work for the second case. In this case the widget
is configured but can't be placed in the screen because of there
were no place for it.

There is no difference between this phantom appwidget and a normal
appwidget.

Tamás

On márc. 4, 19:20, Kostya Vasilyev <kmans...@gmail.com> wrote:
> 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
> checkhttp://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-wid...
>
> -- 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