Activity Life-cycle in Android | Android activity lifecycle
Activity :
Activity is an application component that provide a single focused screen in Android App with which user can interact in order to do something . Activity is the main component of android app, which is displayed as a single window to the user, handles user events and provides behavior for a screen.
Activity Lifecycle :
The activity life-cycle is the set of states an activity can be in during its entire lifetime, from when it’s created to when it’s destroyed and the system reclaims that activity’s resources. Every screen on Android applications has a lifecycle.
At every stage in the lifecycle of an activity has a corresponding callback method like onCreate(), onStart(), onPause() etc.
The below Activity life cycle diagram shows the sequence of callback methods :
When an activity changes their state, the associated callback method is called . Overriding a lifecycle callback method allows you to add behavior that occurs when your Activity transitions into that state.
In our next article we will observe the life cycle calls of the Android system through an example of Android application project.
Thank you :)
For more details about Activity Lifecycle : Activity Lifecycle in android

Comments
Post a Comment