title: Prevent to going back to severel activities, after one specific activity
body: <p>I have something like a registration. It is about 4 to 5 activites.
  And I want that the user is able to go back to every activity, until he closes
  the last one - now all the activites should be 'finished' and the user 
  gets to the main menu.</p>
  
  <p>Example:</p>
  
  <pre><code>go from main menu up to activity 3:
  
  main menu &gt; 1 &gt; 2 &gt; 3 ; than go back to 2
  
  main menu &gt; 1 &gt; 2 ;go to the last one 5;
  
  main menu  &gt;1 &gt; 2 &gt; 3 &gt; 4 &gt; 5 ; now the user finishes the registration;
  
  main menu
  </code></pre>
  
  <p>And if the user is now back to the main menu, I dont want him to get back to any of these
  registration-activities.</p>
  
  <p>I found a lot of equal questions, but the most are only about one activity.</p>
  
  <p>Sorry for my bad english, it is not my mother tongue.</p>
  
  <p>Thanks!</p>
  
  <p>Ps: The answer from Rod works like a charm! I recommend for everyone with the same question to read the following article: <a href="http://developer.android.com/guide/components/tasks-and-back-stack.html" rel="nofollow">Tasks and Back Stack</a></p>