title: How to finish multiple activities on a button click?
body: <p>I am implementing android application which is on web service. I'm creating login <code>Activity A</code> then homepage <code>Activity B</code> and so on.</p>
  
  <p>Suppose there are A, B, C, D and E etc. activities. I'm creating a home button in <code>Activity E</code> and by clicking on that <code>Activity E, D and C</code> should finish and home <code>Activity B</code> should resume.</p>
  
  <p>How can I implement that?  </p>
  
  <blockquote>
    <p>A > B > C > D > E > back button in E
    Activity > B.</p>
  </blockquote>