[android-developers] Re: Problem in identifying which widget click is launching the activity?

2009-06-08 Thread Mark Murphy
dark_messiah wrote: 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

[android-developers] Re: Problem in identifying which widget click is launching the activity?

2009-06-08 Thread Akash Gupta
I m doing the same thing earlier but its not working...its not able to identify which widget is launching the activityif put the appWidgetId as extra then if have more than one widget on your home screen and clicking any one of it its always have the latest widget Id you have added...ne other

[android-developers] Re: Problem in identifying which widget click is launching the activity?

2009-06-08 Thread Mark Murphy
Akash Gupta wrote: I m doing the same thing earlier but its not working...its not able to identify which widget is launching the activityif put the appWidgetId as extra then if have more than one widget on your home screen and clicking any one of it its always have the latest widget Id

[android-developers] Re: Problem in identifying which widget click is launching the activity?

2009-06-08 Thread Tom Gibara
In addition to including the appWidgetId as an extra, put it as the PendingIntent requestCode too (assuming you aren't already using that property of the PendingIntent for some other purpose) that will enable the system to distinguish them. Tom. 2009/6/8 Akash Gupta ricky.dreamwea...@gmail.com

[android-developers] Re: Problem in identifying which widget click is launching the activity?

2009-06-08 Thread Akash Gupta
I have tried that also but its not working...i m only able to get the id of latest widget which i added... On Jun 8, 10:02 pm, Tom Gibara m...@tomgibara.com wrote: In addition to including the appWidgetId as an extra, put it as the PendingIntent requestCode too (assuming you aren't already