What are the different phases of the Activity life cycle in Android?
Answer Posted / Amit Rao Gautam
"The Activity lifecycle in Android consists of several key stages. They are: 1. onCreate(): This method is called when the activity is first created. 2. onStart(): This method is invoked immediately after onCreate() and right before the activity becomes visible to the user. 3. onResume(): This method is called when the activity will start interacting with the user. 4. onPause(): This method is called when another activity is taking focus away from this activity, or when the user is about to leave the device (such as by hitting the home button). 5. onStop(): This method is invoked when the activity is no longer visible to the user. 6. onDestroy(): This method is called just before the activity is destroyed. "
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers