O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Activity life cycle

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required