Difference between revisions of "Template:Simple Application Activity Lifecycle"
(→Activity Component) |
(→Intent Component) |
||
Line 17: | Line 17: | ||
Furthermore learn how to achieve internationalization by understanding [https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/w11-mobile-android-hello-international/ this code]. Try to modify it by adding a new language (yours, if it is different from sample's). | Furthermore learn how to achieve internationalization by understanding [https://zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/w11-mobile-android-hello-international/ this code]. Try to modify it by adding a new language (yours, if it is different from sample's). | ||
− | == | + | == Intents == |
+ | |||
+ | The activities, services and broadcast receivers are activate through '''intents''' that are instances of the [http://developer.android.com/reference/android/content/Intent.html Intent] object. The Intent is a message define by a data structure [http://developer.android.com/guide/topics/intents/intents-filters.html holding an abstract description of an operation to be performed] |
Revision as of 22:28, 8 March 2011
Activity Component
One of the 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.
Here is a sample that illustrates the activity life cycle.
Managing the lifecycle of an activity is defined in the how to build a simple Android app tutorial.
Furthermore learn how to achieve internationalization by understanding this code. Try to modify it by adding a new language (yours, if it is different from sample's).
Intents
The activities, services and broadcast receivers are activate through intents that are instances of the Intent object. The Intent is a message define by a data structure holding an abstract description of an operation to be performed