how to delete image from folder in android programmatically

Solutions on MaxInterview for how to delete image from folder in android programmatically by the best coders in the world

showing results for - "how to delete image from folder in android programmatically"
Louis
27 Jan 2016
1File fdelete = new File(uri.getPath());
2if (fdelete.exists()) {
3    if (fdelete.delete()) {
4        System.out.println("file Deleted :" + uri.getPath());
5    } else {
6        System.out.println("file not Deleted :" + uri.getPath());
7    }
8}