I am trying to display video files in listview from folder created in sdcard. I am using content provider such as:
videocursor = managedQuery(MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
proj, null, null, null);
But it reads all video files stored in sdcard. I want to access only files stored in folder in sdcard. I have also used:
Uri a = Uri.parse(Environment.getExternalStorageDirectory()+"/myfolder");
videocursor = managedQuery(a,proj, null, null, null);
But it gives error. Is there any way to include path of folder in managedQuery() or any other way to display video files from folder in listview?
Try this,