[android-developers] Re: Closing one activity from another

2009-09-28 Thread Jeff King
Override the onActivityResult for all your activities to call finish() if they get back RESULT_OK. Have your last activity setResult (RESULT_OK); before it finishes. http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int,%20int,%20android.content.Intent) On Sep 23,

[android-developers] Re: Closing one activity from another

2009-09-27 Thread schwiz
only way I know how to close an activity is pressing the back button on the phone or calling finish() from the activity. I guess you could try to make some kind of public static function in the activity that calls finish? But you may just want to rethink opening so many activities in the first p

[android-developers] Re: Closing one activity from another

2009-09-27 Thread Boozel
can anyone help? On Sep 23, 10:09 pm, Boozel wrote: > Hi > Is there anyway to close one activity from another? > I want to go through a whole bunch of activities once i get to the > last one close all the previous ones. i cant close them as i move on > to the next one because i want to be able t