Answers for "How to delete image from folder in Android programmatically"

0

How to delete image from folder in Android programmatically

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());
    }
}
Posted by: Guest on July-03-2020

Code answers related to "How to delete image from folder in Android programmatically"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language