As I can delete photos stored in external memory in a specified folder?
My application uses photos for evidence, I keep those pictures in the database, but also are stored in the DCIM folder, how can I eliminate them through code?
Dim Lista As List
Lista.initialize
Dim MisFotos As String
Lista = File.ListFiles(File.DirRootExternal & "/DCIM")
For i = Lista.Size-1 To 0 Step -1
MisFotos = Lista.Get(i)
File.Delete(File.DirRootExternal & "/DCIM",MisFotos)
Next