Short cuts

Android Released Date features Activity Android Life Cycle Life Cycle of Activity ANDROID Version Micromax layout onCreate() onPause() onResume() onStart() Android 4.3 Android 4.3. Android One Android One smartphone Jelly Bean Life Cycle Moto X Nexus 7 Versions its Features latest Android 4.3 leak layout parameters onDestroy() onStop() 5G technology A new touchscreen display AT&T Android 4.4 KitKat release date Android. Apple Apple iPhone 5S Apple's iPhone 5 Battery CGL Canvas Nitro A310 smartphone HTC One Mini Huawei Technologies Layout Types Lenovo S5000 Mi3 Micromax Android One Moto 360 Moto G Moto G2 Online Payment Service SSC SSC CGL 2016 SSC CGL Apply online SSC CGL Notification SSC CGL important dates SSC CGL syllabus Samsung Samsung Tags:Galaxy Gear States T-Mobile Table Layout Tablets Verizon Visa Checkout Visa credit Wall Street Journal absolute layout airtel airtel entertainment android application development android gaming system android layouts android questions android rooting bundle debit cards developers facebook services finish() how to write android program iOS iPhone 5 identifying fingerprints indian developers installing interview questions on android for fresher iphone jailbreaking kitkat version libraries linear layout linux microsoft microsoft portal news note 8 pro nvidia online purchase operating system passport through smartphone redmi redmi note 8pro redmi note 8 redmi note 8 pro price redmi note8 pro specifiactions relative layout rooting run android application screen orientation smartwatch view

Sunday 30 June 2013

Android: Life Cycle States of Activity

Activity LifeCycle 


    As a user navigates through, out of, and back to your app, the Activity instances in your app transition between different states in their life cycle. 


Life Cycle of Activity





Various States of Life Cycle are as follows
  • onCreate() :

Called when the activity is first created. This is where you should do all of your normal static set up: create views, bind data to lists, etc. This method also provides you with a Bundle containing the activity's previously frozen state, if there was one. Always followed by onStart().
  • onRestart() :

Called after your activity has been stopped, prior to it being started again. Always followed by onStart()
  • onStart() :

Called when the activity is becoming visible to the user. Followed by onResume() if the activity comes to the foreground, or onStop() if it becomes hidden.
  • onResume() :

Called when the activity will start interacting with the user. At this point your activity is at the top of the activity stack, with user input going to it. Always followed by onPause().
  • onPause ():

Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed. The counterpart to onResume(). When activity B is launched in front of activity A, this callback will be invoked on A. B will not be created until A's onPause() returns, so be sure to not do anything lengthy here.
  • onStop():

Called when you are no longer visible to the user. You will next receive either onRestart(), onDestroy(), or nothing, depending on later user activity.
Note that this method may never be called, in low memory situations where the system does not have enough memory to keep your activity's process running after its onPause() method is called.
  • onDestroy() :

The final call you receive before your activity is destroyed. This can happen either because the activity is finishing (someone called finish() on it, or because the system is temporarily destroying this instance of the activity to save space. You can distinguish between these two scenarios with the isFinishing() method.

Versions of Android (Upto June 30,2013)


 Android:

            Android is an open source operating system,which is widely used in wide range of mobiles,tablets.
            Android is under ongoing development by Google and the Open Handset Alliance (OHA), and has seen a number of updates to its base operating system since its original release. These updates typically fix bugs and add new features.

We can divide the era of android versions into two parts:

Pre-commercial release versions (2007–2008)

  •  Android alpha
  •  Android beta

 Version history by API level

  •  Android 1.0 (API level 1)
  •  Android 1.1 (API level 2)
  •  Android 1.5 Cupcake (API level 3)
  •  Android 1.6 Donut (API level 4)
  •  Android 2.0 Eclair (API level 5)
  •  Android 2.0.1 Eclair (API level 6)
  •  Android 2.1 Eclair (API level 7)
  •  Android 2.2–2.2.3 Froyo (API level 8)
  •  Android 2.3–2.3.2 Gingerbread (API level 9)
  •  Android 2.3.3–2.3.7 Gingerbread (API level 10)
  •  Android 3.0 Honeycomb (API level 11)
  •  Android 3.1 Honeycomb (API level 12)
  •  Android 3.2 Honeycomb (API level 13)
  •  Android 4.0–4.0.2 Ice Cream Sandwich (API level 14)
  •  Android 4.0.3–4.0.4 Ice Cream Sandwich (API level 15)
  •  Android 4.1 Jelly Bean (API level 16)
  •  Android 4.2 Jelly Bean (API level 17)