file 文件存在 目录

path = Environment.getExternalStorageDirectory() + path + "/a.apk";
File file = new File(path + "/a.apk");
if (file.exists())
	file.delete();

if (!file.exists())
	file.createNewFile();

猜你喜欢

转载自blog.csdn.net/yongwoozzang/article/details/80192577