When user using the Settings’ Clear Data button I get the following message:
ActivityManager(201): Scheduling restart of crashed service
How can I kill the service when Cleadr Data pressed?
How can I detect this event?
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.
I don’t know whether this solution is correct or not. Is it possible to save something to Sharedpreferences in onDestroy and again in onStartService check whether the data is there in sharedpreferences or not. If there don’t start service or kill Service.