Sarath Kamisetty wrote:
> 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.

Search for startActivityForResult(). In your SDK samples/ directory, you
will find a few matches:

./ApiDemos/src/com/example/android/apis/app/ReceiveResult.java
./ApiDemos/src/com/example/android/apis/app/LaunchingPreferences.java
./ApiDemos/src/com/example/android/apis/app/RedirectMain.java

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

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