Template:Simple Application Activity Lifecycle

From CDOT Wiki
Revision as of 21:42, 8 March 2011 by Jordan.anastasiade (talk | contribs) (Activity Component)
Jump to: navigation, search


Activity Component

One of the most important application component type is called Activity and provides a screen for the user to interact with.

The activity object could be created from a subclass of the Activity class or one of its subclasses.

Based of the user input on the activity screen, the operating system calls into your class some important methods. The figure from this source illustrates the life cycle of an android activity component.

Activity lifecycle.png

Here is a sample that illustrates the activity life cycle.

The lifecycle states are defined in the what are the state of a simple Android application tutorial