I want create an Activity in Android which never kill (on long press of Back Button) until specific condition fulfill.
How I can achieve this ?
Thanks.
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.
You could override the back button and only let the activity finish if the ‘conditions have been met’.
I hope this is the answer you were looking for, but your question wasn’t too clear.