Is there some way to prevent the application from closing? Can I do it in the OnDestroy?
Is there some way to prevent the application from closing? Can I do it
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 your question is where you can prevent your application from being closed that is not possible. The system has the right to close when it runs on low resources or when the user wants to – through a task killer or the incorporated system in ICS.
OnDestroy just notifies you about that, you can’t “revive” the application there.