0
Explain application life cycle or application states?

Open 1 Answers 19 Views Technology

Explain application life cycle or application states.

1 Answer

0

These states are known as states of the app’s lifecycle. As an app moves through the states of its lifecycle, the state of the app is defined by its level of activity such as Not Running, Active or Suspended.

Here’s more information about the states:

-When an app is in the Not Running state, either the app hasn’t been launched or the system shut it down.

-When an app starts, it transitions through a short state, called the Inactive state. It’s actually running, but it’s performing other functions and isn’t ready to accept user input or events.

-An app in an Active state is running in the foreground and receiving events. This is the normal mode for foreground apps — apps that don’t have to run in the background without a user interface.

-When an app is in the Background state, its user interface isn’t visible, but it is running. Most apps transition through this state on their way to being suspended.

-An app may need (and request) extra execution time and may stay in this state for a time. In addition, certain apps run in the background. Such an app enters the Background state directly and doesn’t go through the Inactive state.

-The iOS system may move an app to a Suspended state. Here the app is in the background but is not running code. It does stay in memory, though. If a low-memory condition occurs, the system may purge apps in the suspended state without notice. Note that, according to Apple’s standards, only the iOS system can kill an app.

by (249k points)
...