开发者

How to get all filenames inside a folder in assets folder in android?

开发者 https://www.devze.com 2023-01-16 09:00 出处:网络
How to get 开发者_如何学Goall filenames inside a folder in my assets folder in android? Please help.

How to get 开发者_如何学Goall filenames inside a folder in my assets folder in android? Please help. Thanks in advance.


Get an AssetManager (using getAssets() from a context or activity), and call list("subdir") from it(replacing subdir with the name of the folder inside your assets folder).

That will get you a String[] with all the filenames you seek.

0

精彩评论

暂无评论...
验证码 换一张
取 消