Which fragment callback is the first to be called when it is linked to its activity?

  1. onCreateView()
  2. onAttach()
  3. onViewCreated()
  4. onStart()
Answer

B) onAttach()

onAttach() is called when the fragment is associated with its host.

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