What is activity ? Explain activity life cycle.
Answers
Answered by
3
An activity is running when it's in the foreground of the screen. When an activity moves from being launched to being destroyed, it triggers key activity lifecycle methods: the onCreate() and onDestroy() methods. These are lifecycle methods that your activity inherits, and which you can override if necessary.
Similar questions