Sunday, October 9, 2011

[android-developers] Getting info from a calling activity advice

Hi,
I'm trying to do something where I have an activity that needs to call
another activity. I use the startActivityForResult and pass it a
integer as the second parameter. I know I can check for that
information after the second activity is done but my question is; is
there a way I can know what the integer value is when starting the
second activity?
So, I have
startActivityForResult(myIntent, 1);
When the activity described by myIntent is started is there a way I
can grab the 1 value and do something with it? If not, can anyone
provide some advice on how to get a value from a calling activity to
the called activity?
Thanks in advance.
Erik

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

No comments:

Post a Comment