The Fragment Result API uses which pair of methods?

  1. setFragmentResult() and setFragmentResultListener()
  2. putExtra() and getStringExtra()
  3. commit() and rollback()
  4. onSaveInstanceState() and onRestoreInstanceState()
Answer

A) setFragmentResult() and setFragmentResultListener()

Fragments can pass results through the FragmentManager with these methods.

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