If D needs information from A,B or C then it should retrieve it by running those activities.The fact that D is run first doesn't mean the user will see D first because you will be calling A,B or C in the onCreate of D.
On Sun, Jan 4, 2009 at 3:20 PM, Adam Vartanian <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---

