Start the Activity using startActivityForResult(Intent, int).

Use finishActivity (int requestCode) : This force to finish another
activity that you had previously started with
startActivityForResult(Intent, int).

Parameters
requestCode:  The request code of the activity that you had given to
startActivityForResult(). If there are multiple activities started with
this request code, they will all be finished.  

 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tollas
Sent: Saturday, July 03, 2010 12:36 AM
To: Android Beginners
Subject: [android-beginners] closing multiple activities

I have 3 activities, activityA, activityB & activityC.
I want to add a menu button NEW SEARCH that will destroy/finish all 3
and start a new activityA.
I do not want to finish the activities as they process as I want the
user to be able to navigate between the 3 unless the NEW SEARCH menu
option is chosen.

I guess basically I want to know how to finish activityB & C from
activityA.

Thanks!

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to