title: How to destroy and create new instance of activity when using Intent
body: <p>I have activity flow <strong>A->B->C</strong>. Now when I click on button in Activity C I want to open activity B by destroying existing instance of Activity B and creating new instance of Activity B. Again if from Activity C if I press on back button then it should open existing instance of Activity B.</p>
  
  <p>Code I tried is :</p>
  
  <pre><code>    Intent i=new Intent(C.this,B.class);
      i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_NEW_TASK);
      startActivity(i);
  </code></pre>
  
  <p>So after executing this intent stack should be <strong>A->B</strong>.
  But this doesn't creating new instance of Activity B.</p>