1/4
Looks like no tags are added yet.
An app is running in the foreground when a phone call arrives, displaying a small dialog-themed incoming call window over the top of the app. The user can still see the app's UI partially blurred or obscured in the background. Which lifecycle method is called on the main activity when this dialog appears?
onPause()
onDestroy()
onSaveInstanceState()
onStop()
onPause()*
The onResume() callback method is called whenever the activity becomes visible to the user.
True
False
True*
When the user exits an application, which of the following is correct?
onStop() will be called first before onDestroy()
onDestroy() will be called first before onStop()
the application will only call onStop()
the application will only call onDestroy()
i
iv only
ii only
ii and iii
i*
This is the last callback method in Android’s activity life cycle.
onRestart()
onStop()
onDestroy()
onResume()
onDestroy()*
When you open an application, onResume() method is called after.
onCreate()
onStop()
onPause()
onStart()
onStart()*