I’ve four activities in my app. I pressed home button when I was in third activity. Then I restarted my application. Instead of showing the first activity, it shows third activity. Please help me to reset the app when I press home button.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you just want to kill your application when you hit home so that it restarts every time you can place a call to
finish()in youronStopandonPausemethods. The default behavior for the home button is to simply stop the activity instead of exiting it, so navigating to your application again is just resuming from where you left off, essentially.