根据路径获取图片
这是用file函数从文件夹里面拿
public boolean deleteFile(String pathFileName) {
try {
File file = new File(pathFileName);
if (file.exists()) {
file.delete();
}
return true;
} catch (Exception e) {
return false;
}
}