I am using CursorLoader to get the media files from storage. It's working fine for internal and external storage except for the directory and sub-directory of sdcard/android/data/
for example, it fails to detect
sdcard/android/data/com.package.name/files/myFile.mp3
My code
String selection = MediaStore.Files.FileColumns.DATA;
mCursorLoader = new CursorLoader(getContext(),
MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
null,
selection,
null,
null);