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...
The best view to use when you work on the transitions is Slide Show view.
Answer the following statement true (T) or false (F)
Which of the following is not a good strategy for securing a WAP?
A. Use NAT filtering. B. Turn off the SSID. C. Place it in a Faraday cage. D. Use PNAC.
Which of the following is used on modern Linux distributions that reads YAML configuration files to add apps, modify existing configuration settings, or perform administrative tasks at boot time?
A. cloud-init B. Docker Hub C. Kickstart D. OVF
What are the main characteristics of passphrases?
What will be an ideal response?