// 截取文件后缀
String sp=file.toString();
String fileType = sp.substring(path.getAbsoluteFile()
.toString().lastIndexOf("."));
// 截取文件后缀
String sp=file.toString();
String fileType = sp.substring(path.getAbsoluteFile()
.toString().lastIndexOf("."));