AssetManager am=getAssets();
try {
files = am.list("music");
Log.d("++++++++++++length++++++++++",""+files.length);
if (files == null) {
// dir does not exist or is not a directory
Toast.makeText(getApplicationContext(), "Directory not exist", Toast.LENGTH_SHORT).show();
} else {
for(String name : files){
Log.d("==========loop====",""+name);
This code shows a list of files present in logcat but when I add this with arraylist and set adapter for listview it shows nothing...