title: Understanding Intent.FLAG_ACTIVITY_CLEAR_TOP
body: <p><img src="https://i.stack.imgur.com/oYjHv.jpg" alt="enter image description here"></p>
  
  <p>As per the image shown above, I have some queries. It is requested to read each step in order :-</p>
  
  <ol>
  <li>Each block is an Android Activity</li>
  <li>Arrow represents the Stack Direction - the order in which activities are opened(A is started when the app was first launched)</li>
  <li>Here when the User reaches <strong>ACTIVITY F</strong> and want to open <strong>activity Z</strong> (We are using Flag_Activity_clear_top) for the same.</li>
  <li>After that from <strong>ACtivity Z</strong> when the user wants to open the <strong>Activity D</strong>.</li>
  </ol>
  
  <p>****Our Requirement at this step is - When the Activity D is opened and the user do presses the back button - I WANT THAT USER SHOULD BE REDIRECTED BACK TO THE <strong>ACTIVITY C</strong>, AFTER THAT <strong>ACTIVITY B</strong> and so on..** **</p>
  
  <p>Currently when we press back from the <strong>activity D</strong>(after coming from Z), then we are being redirected to the <strong>Activity Z</strong>.</p>