read

Problem


My assets folder is named "sounds" and if I run

 Resources res = context.getResources();  
AssetManager am = res.getAssets();
for (String val : am.list("sounds")) {
Log.d("Test", val);
}

Output:

 sound1.mp3  
sound2.mp3
bootanim0.raw
bootanim1.raw

Solution

Change assets folder to one that can not be equal to some Android System, and how?
Maybe... use a prefix before and more context to the name and.. SOLVED.

For some reason if you have the same as an Android System assets folder it will take both file contents. Why? I don't know :).
Blog Logo

Daniel Gomez Rico


Published

Image

MakinGIANTS

The findings and tips records of an Android-iOS-TheWholeShabang group

Back to Overview