On Fri, Feb 18, 2011 at 12:44 PM, Jake Colman <[email protected]> wrote:
> My service no longer updates the widget and the widget's data area
> remains blank.  This indicates (at least to me but I'm still learning)
> that either the widget is not getting its notification to start the
> service or the service is ignoring its start method.

I'd add some logging or breakpoints. Depending on how you are using
AppWidgetManager from your service, it's also possible that the
service is running but just not updating the app widget (e.g., you're
using the ID-based app widget update and the ID changed).

> So could it be that the notifications are "confused" between old and new
> instances of the widget?

That is decidedly possible. I haven't played around with supporting
multiple app widgets much, so I have no idea how stable those app
widget IDs are.

If this is for your sunrise app widget from your other thread, unless
you are supporting monitoring sunrise from multiple geographic
locations, I would not worry about supporting multiple app widgets.
Use the updateAppWidgets() that just takes a ComponentName and update
the lot of 'em in one shot.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.3 Programming Books: http://commonsware.com/books

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