Problem in identifying which widget click is launching the activity?

by dark_messiah » Mon, 08 Jun 2009 15:06:35 GMT


Sponsored Links
 I m creating my own widget...widget initial  layout contains one
button...when i click on that widget button it shud launch the
specified activity using service...everythng is working fine..but the
problem comes when there are 2 or more widget on home screen...when i
clicking on any one of them i m not able to specify with widget is
launching the activity...Please help???
--~--~---------~--~----~------------~-------~--~----~



Problem in identifying which widget click is launching the activity?

by Mark Murphy » Mon, 08 Jun 2009 19:39:52 GMT


 


Put the app-widget instance ID as an extra in the Intent you wrap with a
PendingIntent that associated with your button.

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

_Android Programming Tutorials_ Version 0.95 Available!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Download and install application

Hello all,

Is there any howto on donwloading via HTTP an application package and
installing it afterwards?

Thanks.

-- 

2. How to fetch phone's phone number or unique ID

Exactly, I want an unique ID to it.

How can I call it? Do I have to instantiate something?

Thanks,






> 

3. has any1 tried hsqldb

4. Picking up contacts: difference in behaviour between HTC and NexusOne - SDK 2.1-update1

5. is this a bug in android OS

6. Using targetSdkVersion

7. Is runtime mapview defining possible? (rather then in main.xml)