Eliminar archivos del almacenamiento externo e interno guardados en un cierto período de tiempo [cerrado]
Frecuentes
Visto 1,477 veces
-3
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).
Gracias de antemano.
1 Respuestas
0
i have no idea that how we can delete files from storage
Use standard Java I/O. To delete a File
(whether it is pointing to a file or an empty directory), call delete()
. Note that for external storage you will need to hold the WRITE_EXTERNAL_STORAGE
permiso.
contestado el 03 de mayo de 12 a las 13:05
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas android android-sdcard or haz tu propia pregunta.
Please clean your question. Try to ask specific problem you are facing in implementation. - Gaurav Agarwal
i need to delete files from internal and external storage which saved in particular time period. i.e. ( saved files between 10 am to 8 pm ) - user1345747
Could you please post some more information related to what you tried to do? Some code snippets or something. - Raul Rene
i have no idea that how we can delete files from storage , i found code to delete directories when uninstall app, but i dont want to uninstall app. - user1345747
You will have to try to do some more research before asking for help. You cannot expect the community to do your research for you. I am certain that it's not that hard to find some examples of removing files from internal/external storage. - Raul Rene