Seminar Topics & Project Ideas On Computer Science Electronics Electrical Mechanical Engineering Civil MBA Medicine Nursing Science Physics Mathematics Chemistry ppt pdf doc presentation downloads and Abstract

Full Version: Android Life Cycle ppt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Android Life Cycle

[attachment=31725]

Life Cycle

The steps that an application goes through from starting to finishing
Slightly different than normal Java life cycle due to :
the difference in the way Android application are defined
the limited resources of the Android hardware platform

Android Applications

Applications are defined to Android via the android manifest file, located in the root of the Eclipse project definition (AndroidManifest.xml)
Double clicking on the AndroidManifest.xml file in the Eclipse project will open the Manifest editor.
The manifest editor is the normal way of creating and modifying the manifest file (defining the app to the system)
An Android application is a collection of activities, an activity correlates to a screen or form that is presented to the user.
The HelloAndroid is a simple one screen app that is essentially the same as a Java app run in a terminal/command window. Its AndroidManisest.xml file reflects this :

Life Cycle

Each application runs in its own process.
Each activity of an app is run in the apps process
Processes are started and stopped as needed to run an apps components.
Processes may be killed to reclaim needed resources.
Killed apps may be restored to their last state when requested by the user