title: Adding multiple fragments to the same containerView and then handling back pressed: Android
body: <p>I have a container view in an activity to which I have added FragmentA and added it to the backStack. Now, based on some button click I want FragmentA to be replaced in the same container view with FragmentB. But I want to make sure that FragmentA comes back to the UI when back is pressed from FragmentB. </p>
  
  <p>I am confused and so could someone please explain how to handle the above scenario.</p>
  
  <p>Thanks. 
  Sunny</p>