开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜