@Kostya - thanks for that. Is there any way to properly remove these stale app widget ids? Rechecking the id against the prefs is OK, but not great when there are potentially hundreds of stale ids. I tried calling onDeleted() but that doesn't seem to help.
Another tip is to process the ids in reverse order because its more likely that the later ids are not stale. If there are a huge number of stale ids then its possible the onReceive() will time out. Of course, you could just process the ids in a service instead. On Oct 24, 9:45 pm, Kostya Vasilyev <[email protected]> wrote: > There are stale widget ids that hang around forever, some of the code > paths causing this are fixed in 2.2, while some are apparently not. > > I documented my workaround here: > > http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-wid... > > -- Kostya > > 24.10.2010 16:44, Filip Havlicek ?????: > > > > > > > > > > > It is not afaik. Are you sure you don't have any invalid widget ids, > > since you are using configuration activity? Search for my post here a > > week ago or so, discussed a problem with configuration activity + > > weird widget ids there. > > > 2010/10/24 Alex <[email protected] <mailto:[email protected]>> > > > Ah, so that answers that one! > > > I have also noticed that a widget is created as soon as the app is > > installed, i.e. before the user has added a widget. What is this > > "phantom" widget? > > > On Oct 24, 11:31 am, Filip Havlicek <[email protected] > > <mailto:[email protected]>> wrote: > > > I think it's actually a known fact in this community and has > > been discussed > > > several times already. > > > > 2010/10/24 Mark Carter <[email protected] > > <mailto:[email protected]>> > > > > > Yes, I noticed this just yesterday. I thought I was going mad. > > Still > > > > could be true. > > > > > On Oct 24, 6:02 pm, Alex <[email protected] > > <mailto:[email protected]>> wrote: > > > > > From my debugging, this does not seem to be true. OnUpdate() is > > > > > called a soon as I add a widget, before the configuration > > activity is > > > > > started. > > > > > > Has anyone else noticed this? > > > > > -- > > > > 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] > > <mailto:[email protected]> > > > > To unsubscribe from this group, send email to > > > > [email protected] > > > > <mailto:android-developers%[email protected]><android-develope > > rs%[email protected] > > <mailto:android-developers%[email protected]>> > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > 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] > > <mailto:[email protected]> > > To unsubscribe from this group, send email to > > [email protected] > > <mailto:android-developers%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > -- > > 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 > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --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 [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

