Android Popping Off The Activity Stack
In our app, we have Activities A,B,C,D, and E. The user usually goes from A to E, moving through B,C,D. In Activity E we want to go back to A, and get rid of B,C,D from the stack.
Solution 1:
If A is already running, you can use the FLAG_ACTIVITY_CLEAR_TOP flag when starting an intent to go back to A.
See also, similar questions:
How to clear current activities in the stack?
how to kill sub activities and bring activity to top of stack
Solution 2:
Use the android:noHistory property in the manifest:
http://developer.android.com/guide/topics/manifest/activity-element.html
Post a Comment for "Android Popping Off The Activity Stack"