Quick question: Is there a way to start a new activity and close the
current one?  Basically keep the Activity stack from growing, but my
main concern is preventing multiple instances of the same Activity
from spawning.

I'm trying to create an app that will allow for changing views from a
standard Activity layout to a Map Layout, but since forcing the layout
back and forth crashes the app, it seems to require multiple
Activities.  However, by doing so, hitting back repeatedly would cycle
between views, not send the user out of the app.

I could handle just waiting for onActivityResult()'s from the
alternate layout activities and automatically finishing, but it seems
like I would run into something bad later.



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