Call the second activity with startActivityForResult, add a SetResult
( ... ) with your result just before calling finish in your second
activity, then in your first activity, onActivityResult will be
called, where you can treat your results.

Hope it helps,

Emmanuel
http://androidblogger.blogspot.com/

On Dec 27, 7:30 pm, "Sarath Kamisetty" <[email protected]>
wrote:
> Hi,
>
> Is there any example out there where one activity creates another
> activity and the new activity returns something to the old one ? In my
> application, when user clicks on a button, I need to move to a new
> activity where I display a list of items and once the user selects one
> of them I have to pass that data value back to the first activity
> where it is displayed in a text field. I see that the notepad v3
> example comes close but not quite.
>
> Thanks,
> Sarath
--~--~---------~--~----~------------~-------~--~----~
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