I am developing an application and I would want to be able to delete the files saved on the internal and external device in a certain period of time (for example, files saved from DateTime1 from DateTime2).
Thanks in advance.
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.
Use standard Java I/O. To delete a
File(whether it is pointing to a file or an empty directory), calldelete(). Note that for external storage you will need to hold theWRITE_EXTERNAL_STORAGEpermission.