On Tue, Apr 19, 2011 at 1:42 AM, Josh Henderson <[email protected]> wrote:

> Does anyone have any suggestions on the best way to solve this?
>

Instead of overriding onBackPressed on the child activities to notify the
main activity it needs to close, always call finish() in the Main Activity
after you start the correct activity.

If you need to go back to main due to the LogOut action, you start the Main
activity and finish() the one you logged out from.

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

Reply via email to