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.
如何获取资产子文件夹的文件。在我的资产文件夹中我有另一个子文件夹(示例)。我想获取示例文件夹的所有文件并将其存储到 sdcard 中。请任何人帮助我吗?
提前致谢。
你可以这样做..
AssetManager assetManager = getAssets(); String[] files = assetManager.list("sample"); for(String filename : files) { ..... }