[android-developers] Passing data with PendingIntent
I would like to create some home screen app widgets that are
entry points into an application. I can put a button in the app
widget
that uses setOnClickPendingIntent to start the activity.
The problem occurs when I want to have two of these app widgets that
are
entry points to different parts of the activity. I need to be able to
pass data into the activity that will distinguish these.
Since both app widgets use a PendingIntent that starts the same
activity,
the two PendingIntents are shared and I can't reliably set extras for
the corresponding intents.
Any ideas how to solve this problem?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home