Android Application Development (AND-401) — Question 22
Which of the following is not an Activity lifecycle call-back method?
Answer options
- A. onStart
- B. onCreate
- C. onPause
- D. onBackPressed
Correct answer: D
Explanation
The correct answer is D, as onBackPressed is a method that handles the back button press event rather than a lifecycle callback method. The other options, onStart, onCreate, and onPause, are all part of the Activity lifecycle in Android development.