'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'?

Regards

--



'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. Modified Calendar App

I have worked on the calendar app for 2.2 and made a few changes.
I added ability to set start week from the settings and changed the
Month View to have color coding.
I am trying to get the changes pushed into master branch to be
considered but if anyone would like to check it out :
http://bit.ly/bECXGa

-- 

2. IMAP TLS (accept all certificated) error on Android 2.2 (Froyo)

Hello,

just got update to FRF91 on Nexus One this morning. Issue: the email
account, which was working perfectly on former Android 2.1, is not
working. Account is configured as IMAP, TLS (accept all certificate).
Error I got is: "Cannot verify hostname: mydomain.com".
I tried to both specify name (mydomain.com) or change it and insert
concered IP address. Both cases, same error.

How can that be solved from Nexus One side, i.e. without acting on
IMAP server where I cannot change anything?

Thanks,
AA

-- 

3. extending media framework on android 2.2 / froyo (stagefright ?)

4. File missing error while compiling Android source code

5. Running custom app at boot on generic hardware

6. Touch Events in Surface View

7. How to get all the children views of a layout