'on click' listener to app widget

by Vladyslav Namashko » Fri, 02 Apr 2010 22:27:23 GMT

Sponsored Links
 Hi all,

Some built in Android widgets (like 'Music', a lot of specific HTC
apps...) has on 'click listeners' (for example, music has 'play' and
'next' buttons). So, is there possibility to add such listeners to my
widget or to some certain view from widget (I found only
setOnClickPendingIntent method from RemoteViews obj. which allows to
start some activity, but this is not what I'm looking for), something
like 'onClickListener'?



'on click' listener to app widget

by Mark Murphy » Fri, 02 Apr 2010 22:45:58 GMT


setOnClickPendingIntent is exactly what you are looking for.

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

Android App Developer Books:  http://commonsware.com/books 


Sponsored Links

Other Threads

1. Free Android Book

Hey, guess what! You can get this book for FREE in PDF form Today! If
you are learning Android, then you need this book!

The Busy Coder's Guide to Android Development (Paperback)

Mark Murphy's Commonsware

Email me and tell me something I don't know about the future of
Android, and I'll decide whether you should get a FREE 6-month
subscription to Commonsware which hosts the book.

I believe you can also boost up your own Subscription.

- Juan T.


2. Proprietary Google Android apps: only for G1 users?

About the Google-proprietary apps: we've been discussing that issue
inside Google, and I've checked the current status with my coworkers.
Making most of those applications available for download for personal
use (which is I believe what you're interested in) is a goal, though
there are a variety of hurdles to clear before that can be a reality,
and some of those could take some time and effort to resolve

About Gears: the people working on Gears told me that they'd be
writing up a bit of documentation about how to recompile Gears from

I know that this doesn't immediately solve all your problems, but
hopefully we'll get there soon enough.


On Fri, Jan 16, 2009 at 7:16 AM, Marco Trevisan (Trevio)

Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.


3. Proprietary Google Android apps: only for G1 users?

4. Where can i see deployed Android Apps from webt?

5. VerifyError importing JDBC PostgreSQL Driver

6. SAXParser doesn't resolve Entitiy-References ( EntityResolver )

7. Getting platform source that matches the SDK?