>
> The AppWidgetProvider is notified on every add and remove operation,
> along with first-add and last-remove operations.

I have tried that but there are scenarios in which is does not work,
the user for example could have 2 instances of the widget and then
delete one...

>
> Or, you can ask your AppWidgetManager getAppWidgetIds().

I can definetly use this. I have played a bit with the onUpdate() and
onDeleted() methods and I can see a new value (id) generated for each
instance of the widget, so now I can use it to know whether I have any
on the homescreen, thus I will not have a service running with no
widget :)

Thanks

>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer 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