3

我尝试了很多方法,但无法删除文件。

File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
File file = new File(path,"test.txt");

boolean deleted = file.delete();

这段代码也很糟糕!有人可以帮助我吗?

4

0 回答 0