Kizspy | Question: 36
(Choose 2 answers)
How do you send data from an activity to a fragment?
A. Set a Bundle and use the Fragment.setArguments (Bundle) method to supply the construction arguments for the fragment.
B. Use the Fragment method getArguments() to get the arguments.
C. Define an interface in the Fragment class, and implement the interface in the activity.
D. Call addToBackStack() during a transaction that removes the fragment.