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.
精彩评论