Some video files (*.mp4) were created with MediaStore and they work perfectly. The Uri of a file is retrieved with ContentResolver query.
- Uri:
content://media/external/video/media/74 - DISPLAY_NAME:
foo.mp4
A file is created with the Uri as follows:
File file = new File(uri.getPath());
file.getAbsolutePath():
/external/video/media/74file.getName():
74file.getParentFile():
/external/video/mediafile.getParentFile().isDirectory():
falsefile.getParentFile().list():
null
Could anyone shed some light on why file.getParentFile() (/external/video/media) is not a directory? Is there a way to get all the files and folders under "/external/video/media" without resorting to ContentResolver query?