How we can exit from app include if method , like this method but it’s not true :
if (ClassName.this.finish(); == true) {
//code..
}
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.
Still don’t know, what you want to achieve, here are some suggestions:
If you want to finish the activity after some condition has become true:
Maybe you want to do something before the acitivty is finished (famous last words). In this case, override the finish method: