On Mon, Sep 20, 2010 at 9:22 PM, ls02 <[email protected]> wrote: > I need to call finish() on all activities up to the root, but I don't know > how to vavigate actities up activity stack. >
Assuming you control all activities, you can start them all using startActivityForResult() then pass back an "exit" code of some sort, such that upon receiving this message, each activity knows it needs to finish() itself. Note that this will only finish your activities, but AFAIK the process will remain at Android's discretion to be re-used later, if need be. On Mon, Sep 20, 2010 at 10:55 PM, ls02 <[email protected]> wrote: > I am not asking why I want to do this. > No, you're not. We are. > I asked specific question. > You did. But the question you asked is frequently asked by people that don't realize it's not something you should be doing in Android. So if you feel you have a good reason for doing this, I know I'd be curious to know what it is. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

