Exam AND-401 All QuestionsBrowse all questions from this exam
Question 45

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

    Correct Answer: A

    When a dialog is shown, the current Activity goes into the background but is still visible, and the onPause() method is invoked. onPause() is called when the system is about to put the activity into the background or when a dialog appears. This is the appropriate method to deal with these situations.

Discussion
MmadiOption: A

A. onPause()