Which of the following statements is false?
a. When an Activity is shut down, its onDestroy method is called, which in turn calls the onDestroy methods of all the Fragments hosted by the Activity.
b. We used the onDestroy method in the MainActivityFragment to release the CannonView’s sound resources.
c. Method onDestroy is guaranteed to be called, so it can be used to release re-sources and to save critical data.
d. The Android documentation recommends that you save data in methods onPause or onSaveInstanceState.
c. Method onDestroy is guaranteed to be called, so it can be used to release resources and to save critical data. Actually, method onDestroy is not guaranteed to be called, so it should be used only to release resources, not to save critical data.
You might also like to view...
Which policy is the highest level of policy and is usually created first?
A. SysSP B. USSP C. ISSP D. EISP
Identify the letter of the choice that best matches the phrase or definition.
A. Applies emphasis, usually italics. B. Applies emphasis, usually bold. C. Used for titles of books. D. Applies a fixed-width font. E. Designates a definition in a list.