Which fragment callback is the first to be called when it is linked to its activity?
- onCreateView()
- onAttach()
- onViewCreated()
- 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