title: Why does FLAG_ACTIVITY_CLEAR_TOP not work?
body: <p>As the title says, Why <code>intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)</code> or <code>intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)</code> won't work?</p>
  
  <p>I have 3 Activities let us say A, B and C.</p>
  
  <p>When I am trying to launch Activity A from C with code:</p>
  
  <pre><code>Intent i = new Intent(this, A.class);
  i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  startActivity(i);
  </code></pre>
  
  <p>It simply starts Activity A but doesn't clear the top.! -_-</p>
  
  <p>I have also tried using <code>setFlags()</code>.</p>
  
  <p>I read different questions on SO about this problem, but I couldn't find the right answer. >_&lt;</p>
  
  <p>Somebody please help!</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Code for onBackPressed() in activity 'A' as requested by @codeMagic.</p>
  
  <pre><code>@Override
  public void onBackPressed(){
      if(wvLogin.canGoBack())
          wvLogin.goBack();
      else
          super.onBackPressed();
  }
  </code></pre>