I am little confused between the life cycle of two activities.
Suppose I have Activity A and Activity B.
B is called From A i.e
A ----> B
Suppose there is an activity A, from which you launch activity B. If, while in activity B, you hit the back button, you are popping activity B off the stack and B will not be in the activity stack any longer.
Whenever you push an activity to the stack,
onCreate is called, and if you press back button,
onDestroy is called, which means that the activity is flushed away.
Please visit my blog for further information: http://upadhyayjiteshandroid.blogspot.in/2013/02/android-lifecycle.html
please visit for more