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.
我想获取存储在文档文件夹中的文件名。
Environment.getExternalStorageDirectory()+"/documents/"+Abc.doc;
为了获取文件名,我使用substring(11, path.length()). 它仅适用于特定平板电脑,但不适用于某些平板电脑。如何在不硬编码路径的情况下获取文件名?
substring(11, path.length())