☑Kizspy.me
☐ A
(Choose 1 answer)
Considering the dynamic way to add Fragments to an Activity, which of the following scenarios correctly
outlines the process and potential pitfalls of dynamically managing Fragments within an Activity's lifecycle?
A. Dynamically added Fragments do not affect the Activity's lifecycle; thus, developers need not consider the
Activity state when adding or removing Fragments.
B. Fragments added dynamically must be managed carefully during the Activity's lifecycle events, such as
configuration changes, to prevent memory leaks or crashes due to lost context.
C. Dynamically adding Fragments to an Activity is discouraged as it complicates the Activity's lifecycle and
makes the app more prone to errors.
D. The FragmentManager handles all complications arising from the Activity's lifecycle changes, so
developers do not need to manually manage Fragments added dynamically..
Back
Next
FUO.sh
sh the exam.