Which method makes the Back button undo a fragment transaction?

  1. hide()
  2. commitNow()
  3. setReorderingAllowed()
  4. addToBackStack()
Answer

D) addToBackStack()

addToBackStack saves the transaction on the back stack.

Computer Science MCQ · More Windows Mobile, Eclipse and Fragments MCQs · Practise