The Activity life cycle is usually defined by a list of methods inside the Activity class that provide us with ways to control the state of an activity. This allows developers to handle activities within an Android application.
Let's have a look at the different states of an Activity:
These states can be broken into four main groups as follows:
- Running: Activities are called active or running if they are in the foreground, also known as the top of the activity stack. This is known to be the highest priority activity in Android and will only be killed by the OS in extreme situations, such as if the activity tries to use ...