October 2018
Intermediate to advanced
464 pages
15h 17m
English
In the Switching between activities recipe from Chapter 1, Activities, we discussed the back stack. Most users would expect the back key to move backward through the "screens" and they don't know or care if those screens are activities or Fragments. Fortunately, Android makes it very easy to add Fragments to the back stack just by adding a call to addToBackStack() before calling commit().