On Thu, Sep 22, 2011 at 3:43 PM, Streets Of Boston
<[email protected]>wrote:

> Yes, a lot :)
>
> Try out your code using 'hasPushedActivityB' and then rotate your phone or,
> if it has a physical keyboard, slide out the keyboard:
> The activities will be recreated and your 'hasPushedActivityB' of the new
> activity A will be false, but the new Activity B will be showing.
>

Not sure how to try this out on the emulator.

>
>

> Just use onActivityResult.:)
>

OK, but one more thing is not clear from the documentation at
http://developer.android.com/reference/android/app/Activity.html
under "Starting Activities and Getting Results" which states: "When an
activity exits, it can call
setResult(int)<http://developer.android.com/reference/android/app/Activity.html#setResult%28int%29>to
return data back to its parent."
Since the Intent is returned to the parent activity inside onActivityResult,
what is the difference in using setResult and using putExtra in Activtity B
on the Intent to pass back a custom result parameter to Activity A?

(There is an example here:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/SendResult.html
and then there is the NotesList application.)

Thanks,

John Goche

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to