I am developing an android application. There is first login page and after that pages as per requirement. when i pressed button home button it comes out on android main screen. and when i starts application again it moves on Activity it left previously instead of moving on login page. please help me out. how can i achieve this?
Share
Try to override onUserLeaveHint to catch event:
onUserLeaveHint()
Called as part of the activity lifecycle when an activity is about to go into the background as the result of user choice.
(http://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint())