3

I create a method that upload and save the video in "/download" folder in external storage in the android phone, if i use MediaStore.Video.Media.EXTERNAL_CONTENT_URI all video files will be included, i want to know how to get the exact path of the "/download" folder in the phone storage?

because if i use this

private static final Uri sourceUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;

videoCursorTitle = getContentResolver().query(sourceUri, projection,
                null, null, orderByTITLE);

if i use that it gets all the video from the external storage, how to get video in a specific folder? folder name is "/download"

Pihu
  • 1,041
  • 11
  • 35
Piolo Opaw
  • 1,471
  • 2
  • 15
  • 21
  • [Here](http://stackoverflow.com/questions/20007342/how-to-get-list-of-video-files-in-a-specific-folder-in-android) is a answer to get video files in a specific folder. – JK Park Mar 12 '14 at 06:39

1 Answers1

4
 String selection=MediaStore.Video.Media.DATA +" like?";
            String[] selectionArgs=new String[]{"%FolderName%"};
            videocursor = managedQuery(MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
                    parameters, selection, selectionArgs, MediaStore.Video.Media.DATE_TAKEN + " DESC");
Bhanu Sharma
  • 5,135
  • 2
  • 24
  • 49