File file = new File(path); if(file.exists()) { File file2 = new File(file.getAbsolutePath()); file2.delete(); Toast.makeText(this, "File deleted.", Toast.LENGTH_SHORT).show(); finish(); }else { Toast.makeText(this, "File not exists", Toast.LENGTH_SHORT).show(); }
finish()
File file = new File(path); file.delete(); if(file.exists()){ file.getCanonicalFile().delete(); if(file.exists()){ getApplicationContext().deleteFile(file.getName()); Toast.makeText(this, "File deleted.", Toast.LENGTH_SHORT).show(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)