I need to know when a file is deleted from an android device, is it possibile? Are there some intents about the request to delete a file from device or SD?
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.
You can register a file observer for files in some locations (though I’ve heard rumors this may not work for the simulated “external storage” on some recent versions).
But there is no way to “intercept” as in prevent such deletion, short of modifying the installation of android.
If the file is readable to your app, you could presumably make a backup copy ahead of time.