Possible Duplicate:
Removing an activity from the history stack
Suppose I have three activities on my stack, like this A → B → C.
I would like to terminate B and replace it with an activity D, so that the stack looks like this : A → D → C.
The intended effect is to have a "screen chooser" activity C. It opens on top of activity B, offers a number of things to choose from, and when the user clicks one, it closes, revealing the chosen screen. I can cancel the opening animation with overridePendingTransition, but that alone won't help me reveal the activity by closing the chooser interface.
Is there any way to do that in Android ?