tags:

views:

38

answers:

1

For example my application contain 3 pages and run that application when the middle of that application means at 2 page i got a phone call after that phone call again i start that application using menu in home screen .At that time i want a page where we stop in previous(that means 2 page).Give me the suggestions Thanks in advance

+1  A: 

please read http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle

from the above link, when an application loses its focus to other application the focus losing application will be kept on stack and again when it gains the focus it resumes from the previous state. In case if your application contains some perishable data you can use the methods onPause() when you app loses focus and onResume() when your app regains the focus.

Vamsi