AssetManager list returns nothing

The following code creates a list without entries:

AssetManager am = getContext().getAssets(); try { String[] xmls = am.list("assets/images"); //Do something... } catch(IOException e) { } 

There are many files in the directory of my resources / images. What is wrong here?

+1
source share
1 answer

Get rid of assets/ from your list() call and see if that helps.

+5
source

All Articles