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?
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?
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?
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?
Signup and view all the answers
In the Activity lifecycle, which method follows onResume() but precedes onDestroy()?
In the Activity lifecycle, which method follows onResume() but precedes onDestroy()?
Signup and view all the answers
When is the onCreate method called in the Activity lifecycle?
When is the onCreate method called in the Activity lifecycle?
Signup and view all the answers
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?
Signup and view all the answers
What happens to an Activity when it goes into the Paused state?
What happens to an Activity when it goes into the Paused state?
Signup and view all the answers
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?
Signup and view all the answers
What happens to an Activity in the Stopped state?
What happens to an Activity in the Stopped state?
Signup and view all the answers
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?
Signup and view all the answers
What methods are executed when starting an Android application?
What methods are executed when starting an Android application?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers