Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道文件夹是否为空,我可以看看它是否存在。我知道如何做到这一点并删除文件。但我想知道它是否为空,以便我可以删除它。这是我的代码。
try{DocumentsContract.deleteDocument(getApplication Context().getContentResolver(), uri2); } catch (FileNotFound Exception e) {}