title: Restart activity instead reCreate [Android]
body: <p>I have following situations with activities A,B,C:
   A->B->C->A</p>
  
  <p>In this last step (C->A), I want to override onBackPressed of C, so that it restarts activity A (without recreating it). I tried code below, but onCreate() of A is still called. Which flag should I add?</p>
  
  <pre><code>public void onBackPressed() {
  
      Intent intent=new Intent(C.this, A.class);
      intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
      startActivity(intent);
  
  }
  </code></pre>