Please tell me the method for the life cycle of Android activities.

Asked 2 years ago, Updated 2 years ago, 142 views

What is the life cycle of Android activities? I think onCreate(), onStart(), and onResume() are all similar methods, so please tell me the role of these methods.

android lifecycle oncreate onresume ondestroy

2022-09-21 16:40

1 Answers

the life cycle of an activity 1

e.g.) You must stop audio, video, and animation that you started playing in the onResume() method, and turn off resources such as DB.


2022-09-21 16:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.