[android-developers] Clickable elements on widget

2012-03-14 Thread Pinheiro
Hi! Is there a way to have clickable elements inside a widget? (for instance, to change some text when an image is clicked) AFAIK, widgets only use setOnClickPendingIntent() that detects a click on all of the widget, it's not possible to set a method for a single element. Or is there? Thanks

Re: [android-developers] Clickable elements on widget

2012-03-14 Thread Justin Anderson
I handle click events in a desktop widget this way: 1. Create a service that inherits IntentService to handle updating the widget display 2. For each item that you want to be clickable, create an intent filter entry in the manifest with a unique action name 3. When you update the