title: Finish all previous activities
body: <p>My application  has the following flow screens :</p>
  
  <p><code>Home-&gt;screen 1-&gt;screen 2-&gt;screen 3-&gt;screen 4-&gt;screen 5</code></p>
  
  <p>Now I have a common <code>log out</code>  button in each screens</p>
  
  <p>(<code>Home/ screen 1 / screen 2 /screen 3/ screen 4 / screen 5</code>) </p>
  
  <p>I want that when user clicks on the log out button(from any screen), all the screens will be finished and a new screen <code>Log in</code> will open . </p>
  
  <p>I have tried nearly all <code>FLAG_ACTIVITY</code> to achieve this.
  I also go through some answers in stackoverflow, but not being able to solve the problem.
  My application is on Android 1.6 so not being able to use <code>FLAG_ACTIVITY_CLEAR_TASK</code> </p>
  
  <p>Is there any way to solve the issue ?</p>