I have a encrypted file, which on decryption is to opened in temporary memory, and when user closes the file they temporary file is deleted, What’s the way to achieve this functionality?
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 cannot use external storage for the file since it will be available to whole world(what if user ejects SD card before you delete it?)
You should use internal storage so that you can remove it once the user is done. Use
MODE_WORLD_READABLEso that user/other apps can only read it. When user is done, you can delete it.