title: how to finish all activities and close the application in android?
body: <p>My application has the following flow:</p>
  
  <p>Home->screen 1->screen 2->screen 3->screen 4->screen 5>Home->screen 2->Home->Screen 3</p>
  
  <p>My problem is that when I am trying to close the application then Home activity opens everytime when I am trying to close the application.</p>
  
  <p>I just want to close the application when user presses the back key of device on home screen.</p>