I have only one activity and multiple fragments in my application.
activity
fragments
Two main fragment A(left) and B(right).
Back button will traverse in the order, in which Fragments were added to backstack. This is provided as a navigation function by default. Now if you want to go to specific Fragment, you can show it from backstack.