Android Activity

An Android activity is one screen of the Android app's user interface. In that way an Android activity is very similar to windows in a desktop application. An Android app may contain one or more activities, meaning one or more screens. The Android app starts by showing the main activity, and from there the app may make it possible to open additional activities. Activity Life Cycle Any Android activity goes through a certain life cycle during its life inside the Android app. This life cycle is illustrated here: When an Android app is first started the main activity is created. The activity then goes through 3 states before it is ready to serve the user: Created, started and resumed. If the main activity can open any other activities (screens) these activities will go through the same 3 states when they are opened. If an activity A opens another activity B, then activity A will be paused. This means that activity A goes into the paused state. When the user clicks ...