Podcast
Questions and Answers
Which method is called before the activity is destroyed in the Activity lifecycle?
Which method is called before the activity is destroyed in the Activity lifecycle?
- onDestroy() (correct)
- onRestart()
- onPause()
- onResume()
In the lifecycle of an Activity, which method indicates that the activity is no longer visible to the user?
In the lifecycle of an Activity, which method indicates that the activity is no longer visible to the user?
- onPause()
- onRestart()
- onStop() (correct)
- onCreate()
When can the Android runtime system kill an Activity without calling onStop() and onDestroy() methods?
When can the Android runtime system kill an Activity without calling onStop() and onDestroy() methods?
- During onPause() (correct)
- During onCreate()
- During onRestart()
- During onResume()
Which method allows an Activity to perform setup before becoming visible to the user?
Which method allows an Activity to perform setup before becoming visible to the user?
In the Activity lifecycle, which method follows onResume() but precedes onDestroy()?
In the Activity lifecycle, which method follows onResume() but precedes onDestroy()?
When is the onCreate method called in the Activity lifecycle?
When is the onCreate method called in the Activity lifecycle?
In which state does an Activity have the focus of the user in the foreground?
In which state does an Activity have the focus of the user in the foreground?
What happens to an Activity when it goes into the Paused state?
What happens to an Activity when it goes into the Paused state?
Which method is called when another Activity comes to the foreground and the current Activity goes into the Paused state?
Which method is called when another Activity comes to the foreground and the current Activity goes into the Paused state?
What happens to an Activity in the Stopped state?
What happens to an Activity in the Stopped state?
Which method is called when an Activity stops and relinquishes its involvement with the window manager?
Which method is called when an Activity stops and relinquishes its involvement with the window manager?
What methods are executed when starting an Android application?
What methods are executed when starting an Android application?
How does an Activity retain its previous state after calling onPause() or onStop() methods?
How does an Activity retain its previous state after calling onPause() or onStop() methods?
What method is called before onDestroy() to preserve the state of an Activity?
What method is called before onDestroy() to preserve the state of an Activity?
Which callback method is executed when an Activity is just about to be destroyed?
Which callback method is executed when an Activity is just about to be destroyed?
What happens to the state of an Activity when it is destroyed using onDestroy() method?
What happens to the state of an Activity when it is destroyed using onDestroy() method?
At what point does an Activity's state get saved in the Bundle class?
At what point does an Activity's state get saved in the Bundle class?
Flashcards are hidden until you start studying