The following code produces a list with no entries:
AssetManager am = getContext().getAssets();
try {
String[] xmls = am.list("assets/images");
//Do something...
}
catch(IOException e)
{
}
There are plenty of files in my ass开发者_如何学运维ets/images directory. What's wrong here?
Get rid of assets/
from your list()
call and see if that helps.
精彩评论