My application has several activities the first being a logon screen, I want to always force the user to logon even if they have stopped the application using the home button and the restored it. Is there a way to achieve this in android?
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.
Use
android:clearTaskOnLaunch="true"in your Launcher Activity in the manifest and for all other activities useandroid:finishOnTaskLaunch="true"in the manifest.For a reference, have a look at the link below, this will help you doing what you want.
Kill all activities when HOME key is pressed android