I have an application that I'm writing that requires a complicated
login screen to set up the application, but after login the middle
screens are no longer valid, and I don't know how to remove those
activities from the stack after they're no longer needed.

In other words, given that I have activities A, B, C on the history
stack, how can I launch activity D such that after launching the stack
looks like either A, D or just D.  It seems like I could launch A
using FLAG_ACTIVITY_CLEAR_TOP with information in the Intent that it
should immediately launch D, but that doesn't seem like a clean
solution.  Basically, I'm looking for a flag that just launches D and
clears the rest of the stack, but it seems like the only options close
to that are FLAG_ACTIVITY_CLEAR_TOP (which doesn't say what it does if
the launched activity isn't currently running, but presumably does
nothing) and FLAG_ACTIVITY_NEW_TASK (which will cause problems if the
user goes home).  Am I missing something?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to