protected override void onListItemClick(ListView l, android.view.View v, int position, long id) { File file = new File((string)path.get(position)); if (file.isDirectory()) { if (file.canRead()) { getDir((string)path.get(position)); } else { new AlertDialog.Builder(this) //.setIcon(R.drawable.ic_launcher) .setTitle(file.getName() + "] folder can't be read!") //.setPositiveButton("OK", null) .show(); } } else { new AlertDialog.Builder(this) //.setIcon(R.drawable.ic_launcher) .setTitle(file.getName() + "]") //.setPositiveButton("OK", null) .show(); } }