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.
I am confused and so could someone please explain how to handle the above scenario.
Thanks. Sunny