My application need to show media files using direct file paths (ex : /storage/emulated/0/Pictures/example.png), but I am facing some problem as below:
- With MediaStore: The column MediaStore.MediaColumns.DATA is deprecated
- With Files API : When I perform sequential reads of media files using direct file paths, I can get the root directory because
Environment.getExternalStorageDirectory()
is deprecated
Can anyone help me find out the best solution? Thanks advance.