title: Android back button problem
body: <p>Say I have 3 Activities in my application: A, B and C. The flow though the application is: A -> B -> C.</p>
  
  <p>Once at C, pressing the back button will take the user to B. If the user presses the back button another time they got to A, and finally if they press it one more time, they exit the application.</p>
  
  <p>Objective: When the user presses the back button on C, they should go to A and <strong>not</strong> B, and if they press it another time, they exit the app.</p>
  
  <p>Problem: When overriding the back button on Activity C to launch Activity A everything appears to be ok.  However if the user presses the back button again, they return to Activity C. And so pressing the back button just switches between Activity A and Activity C.</p>
  
  <p>I guess the Activity stack looks like:</p>
  
  <ul>
  <li>Open app: <strong>A</strong></li>
  <li>Go to B: <strong>A, B</strong></li>
  <li>Go to C: <strong>A, B, C</strong></li>
  <li>Press back: <strong>A, B, C, A</strong></li>
  <li>Press back: <strong>A, B, C</strong></li>
  <li>Press back: <strong>A, B, C, A</strong></li>
  <li>Press back: <strong>A, B, C</strong></li>
  <li>Press back: <strong>A, B, C, A</strong></li>
  <li>Press back: <strong>A, B, C</strong></li>
  <li>Press back: <strong>A, B, C, A</strong></li>
  <li>...etc</li>
  </ul>
  
  <p>So it seems the mistake is to launch a new Activity when the back button on C is pressed?  Anyway, I could do with advice on how to implement this behaviour.</p>
  
  <p>Thanks,
  Jack</p>