The recommended way to pass initial data to a new fragment is:
- A global variable
- A constructor with parameters
- A static field in the activity
- Setting its arguments Bundle
Answer
D) Setting its arguments Bundle
Arguments survive fragment recreation; custom constructors do not.
Computer Science MCQ · More Windows Mobile, Eclipse and Fragments MCQs · Practise