How to return to main activity after being three activities down?
<p>My app has four activities; MainActivity, ListActivity1 (L1) , ListActivity2 (L2), ListActivity3 (L3). From Main, the user goes down to L1 by clicking a button. After selecting an item in L1, user comes to L2 and then L3 after selecting an item in L2. In L3, when selecting an item a Yes/No-toast is launched. If user selects "No", user stays on L3. If user selects "Yes", user returns way back to Main.</p>

<p>Here's the question: If the user selects "yes" taking him to Main and pressing Back button, he returns to L3. What I want is that if the user has walked down to L3, selected yes and returned to Main, pressing Back should take him to Home screen. I.e. I want to delete the "back trace" to L3.</p>

<p>How do I accomplish this?</p>

<p>(Main and the ListActivities starts the new activity with <code>startActivity(new Intent(foo, Bar.class))</code>)</p>
