I am trying to get the names of my folders in "assets". I can get the file names from AssetManager using the assetManager.list () method. But the problem is that it only returns file names, not folder names. Therefore, I am trying to use the listFiles () method, but I cannot access the Assets directory; I will try the following:
File dir = new File ("file:///android_asset/"); File[] files= dir.listFiles();
But this does not work: (... Is there a way to get the folder names contained in the Assets directory?
android
Nox Jul 19 '10 at 13:05 2010-07-19 13:05
source share