Question from the Android - Fundamentals test

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

Medium

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

Author: LéoStatus: PublishedQuestion passed 129 times
Edit
-1
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
Auteur anonyme
12/11/2024
Indeed, do you want to add a substitute question ?
developer avatar
Othman
08/06/2024
onBackPressed() and onClick() are not life cycle methods.