title: Android- Make back button switch between tabs (tab navigation actionbar)?
body: <p>I'm developing an android app. I have an actionbar in tab navigation mode, and three tabs that call fragments to be replaced in the frameview container.</p>
  
  <p>My problem is: if the user generates a backstack while in one tab and then switches to another tab, if the back button is pressed in this state- then the backstack is popped, but <strong>the tab doesn't change</strong>, which leads to overlapping fragments (backstack fragment which belongs to Tab1 is popped/added, but Tab2 is still selected and so is its fragment).</p>
  
  <p>Is there a way to make actionbar tabs react to the back button in a way that will parallel the fragment backstack?</p>