Android activity flow & navigation up/back
<p>I'm working on an Android application that has 4 activities :</p>

<p>A -> B -> C -> D</p>

<p>When I'm going from A to B, from B to C, or from C to D, I put some extras in the Intent.</p>

<p>I guess navigation for something like that is quite simple: there's no need to redefine the back button, and for the "up" action bar button, a simple "finish()" would be to correct way to do it (?)</p>

<p>Now, the problem is that from A, I can also go directly to D. Still no need to redefine the back button, it will go back to A, and that's what I want, but for the "up" button, it must go to C, and from C, up will lead to B, ...</p>

<p>What is the correct way to do that?</p>

<p>Thanks for your answers</p>
