Android SD卡上的文件删除操作失败
SD卡上的Android文件删除操作失败 下面是我的代码Android SD卡上的文件删除操作失败,android,Android,SD卡上的Android文件删除操作失败 下面是我的代码 File testingfile = new File("file path in SD card"); try{ boolean bool = testingfile.delete(); } catch(){ Log.d (TAG, e.printmessage()); } 权限(已授予):- 该文件未被删除。bool总是返回false 我的BuildTools版本“28.0.3” <uses-permission and
File testingfile = new File("file path in SD card");
try{
boolean bool = testingfile.delete();
}
catch(){
Log.d (TAG, e.printmessage());
}
权限(已授予):-
该文件未被删除。bool总是返回false
我的BuildTools版本“28.0.3”
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />