title: Back button exiting application in android
body: <p>I'm a bit puzzeled, I have an application which has 5 tabs in tabHost. Each tab has an activityGroup, which further has a parent and a child activity. The parent activity contains list of titles and the child activity has the details of those titles. Now, if I move on to another tab in my application from details page and then come back to the same tab in which i was viewing the details, the details are again displayed whereas the parent activity should be shown or if i press back button from here it exits my application whereas it should go to it's parent activity.</p>
  
  <p>It is like</p>
  
  <p>Tab1 - ActivityGroup &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tab2 - ActivityGroup</p>
  
  <pre><code>     ParentActivity1 - ListActivity          ParentActivity2 - ListActivity
  
       ChildActivity1 - Activity               ChildActivity2 - Activity
  </code></pre>
  
  <p>Now when i go from ChildActivity1 to Tab2 - ParentActivity2 and come back to Tab1 i get to see the ChildActivity1 only and if i press back button then my application exits</p>
  
  <p>Please help</p>