jason wrote: > Is there a way for an (sub-)activity to pass values to the previous > activity on the stack (when Back key is pressed) without resorting to > persistence storage or static varables in the app?
Use startActivityForResult() rather than startActivity() to start it, use setResult() to set the result, and use onActivityResult() to retrieve the result. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---