Clearing the Android back stack
<p>I'm trying to do something similar to <a href="http://stackoverflow.com/questions/5794506/android-clear-the-back-stack">this</a> question. </p>

<p>I've got a main app A, and sub-apps B and C. B is a searchable dictionary, and C is a definition, so if you search for many words, you can end up with the stack looking like A > B > C > B > B > C > B > C > C > C... etc</p>

<p>Whenever I go back, I'd like to go back to the original B, so I want the back stack to basically stay at A > B all the time. </p>

<p>I've currently got it set up using an Intent so when the back button is pressed from C, it goes to a new instance of B, but that's obviously not what I want. </p>

<p>Ideas?</p>
