title: Set Intent to back key in TabActivity
body: <p>I have three Activities - A B and C, of which B is a <strong>Tab Activity</strong>. 
  Activity A is launched first, and B is launched from A. I finish Activity A when B is launched using this code</p>
  
  <pre><code>public void onStop() {
     super.onStop();
     this.finish();
  }
  </code></pre>
  
  <p>Now I want to launch Activity C when back key is pressed in B.</p>
  
  <p>I tried overriding back key using this code</p>
  
  <pre><code>@Override 
  public void onBackPressed() { this.getParent().onBackPressed();
  }
  </code></pre>
  
  <p>This doesn't Help as the Parent Activity is finished while launching the Child Activity. What actually happens when I press back key is that the Activity exits to the Home screen.</p>
  
  <p>I tried overriding the back key and setting an Intent to it</p>
  
  <pre><code>@Override
  public void onBackPressed() {
      Intent backIntent = new Intent();
      backIntent.setClass(this, main.class);
      startActivity(backIntent);
  }
  </code></pre>
  
  <p>This also doesn't help me. 
  What could be a possible solution to this problem, How can I launch Activity C when back key is pressed ?</p>