I have only one activity and multiple fragments in my application.
activity
fragments
Two main fragment A(left) and B(right).
You have to implement your own backstack implementation as explained here.
You can call the popFragments() whenever you click the back button in a fragment and call pushFragments() whenever you navigate from one Fragment to other.
popFragments()
pushFragments()