title: Android: Changing task back stack
body: <p>OK so I have done some research and it looks like there are a fair amount of questions regarding this (such as <a href="https://stackoverflow.com/questions/3408388/how-to-kill-sub-activities-and-bring-activity-to-top-of-stack">here</a>) but none of the answers seem to address my particular question.</p>
  <p>Simply put, say we have back stack with three activities: A -&gt; B -&gt; C. Now if the user performs a certain action in activity C (the foreground activity) I want to be able to remove activity B from the back stack and replace it with some other activity D giving A -&gt; D -&gt; C. Is there any way to do this without disrupting activity C?</p>
  <p>Thanks in advance.</p>