Eliminar archivos del almacenamiento externo e interno guardados en un cierto período de tiempo [cerrado]

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.

preguntado el 03 de mayo de 12 a las 13:05

Please clean your question. Try to ask specific problem you are facing in implementation. -

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 ) -

Could you please post some more information related to what you tried to do? Some code snippets or something. -

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. -

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. -

1 Respuestas

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 or haz tu propia pregunta.