Which of the following Activity life-cycle methods is invoked when a dialog is shown?

Which of the following Activity life-cycle methods is invoked when a dialog is shown?
A . onPause()
B . onCreate()
C . onStop()
D . onDestroy()

Answer: A

Explanation:

onPause() is where you deal with the user leaving your activity.

References: http://developer.android.com/reference/android/app/Activity.html

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments