Hi guys,

i'm implementing a simple Widget that toggles on/off a service on my
App, I've extended a AppWidgetProvider class and succesfully defined
the xml <appwidget-provider> file.

The question is, how can i register a OnClikListener so i know when
the user clicks the widget on the desktop (once its already placed on
it) the OnUpdated(), OnEnabled(), OnDisabled() events are being
correctly called, but i don't know how to register a OnClickListener
sinces there's no activity and therefore i cannot call findViewById().

How is it done for most of the toggle widgets? how have you guys
implemented it?

Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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