Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

delet file from path android

File fdelete = new File(uri.getPath());
if (fdelete.exists()) {
    if (fdelete.delete()) {
        System.out.println("file Deleted :" + uri.getPath());
    } else {
        System.out.println("file not Deleted :" + uri.getPath());
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delet #file #path #android
ADD COMMENT
Topic
Name
3+5 =