Android Application Development (AND-401) — Question 24
Which of the following Activity life-cycle methods is called once the activity is no longer visible?
Answer options
- A. onStop
- B. onPause
- C. onDestroy
- D. onHide
Correct answer: A
Explanation
The correct answer is A, onStop, which is called when the activity is no longer visible to the user. onPause (B) is called when the activity is partially obscured but still visible, while onDestroy (C) is invoked when the activity is being destroyed. onHide (D) is not a valid Activity life-cycle method.