'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. oot - share score paper toss

34? Awesome........
Ane maksimal aja cuman 12. Itu aja sekali kalinya........

sent from nexusS


2. Honeycomb SDK - TabHost issue

Tried our app (WordPress for Android) on the Honeycomb preview, when
it gets to the point where it uses a TabHost the app crashes on
ViewRoot.draw()  Anyone else having problems with a tab layout in


3. XL unlimited Ga bisa browsing

4. Nexus S vs Motorola Atrix

5. [WTT Want To nyari-Temen] Anggota id-Android Bandung

6. Froyo Wildfire Official

7. Oot iseng: host apa kabar indonesia tvone elus samsung gtab