I wolud like to read entire raw project folder content (that contains some .mp3 files). This is how i try to read folder content:
Uri uri = Uri.parse("android.resource://" + this.getPackageName() + "/raw/");
File file = new File(uri.getPath());
File[] files = file.listFiles();
for (int i = 0; i < files.length; i++) {
Log.i("ADASDAS", files[i].getName());
}
But i obtain a NullPointerException on files object. What's wrong? The exception is on files.length call.