fr
fr

Question from the Android - Fundamentals test

Which of the following is not an activity life cycle method?

Hard

Which of the following is not an activity life cycle method?

Author: LĂ©oStatus: PublishedQuestion passed 144 times
Edit
-2
Community Evaluations
developer avatar
Incorrect answer
Narek
11/11/2024
onCreate(): This is an activity lifecycle method, called when the activity is first created. onBackPressed(): While not a traditional lifecycle method, onBackPressed() is part of the activity’s callback methods, allowing customization of behavior when the back button is pressed. onStart(): This is a lifecycle method, called when the activity becomes visible to the user. onClick() is not an activity lifecycle method; instead, it is a callback for handling click events on UI elements like buttons.
developer avatar
Dragon parfait
12/11/2024
Indeed, do you want to add a substitute question ?
developer avatar
Incorrect answer
RABIE
28/01/2025
onBackpressed(): this is. not a lifecycle method, it is a method called when the back button pressed.
developer avatar
Othman
08/06/2024
onBackPressed() and onClick() are not life cycle methods.