Thursday, June 24, 2010

Re: [android-developers] Know if your widget is on the homescreen

On Thu, Jun 24, 2010 at 1:17 PM, Albert <albert8571@googlemail.com> wrote:
> Is there a way to know if there is an instance of your widget
> currently on the homescreen?

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

Or, you can ask your AppWidgetManager getAppWidgetIds().

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment