I gained access to this folder using Document Tree Intent :-
content://com.android.externalstorage.documents/tree/primary%3AExampleApp%2FMedia%2F.hiddenMedia
The URI of a image present in the above folder :-
content://com.android.externalstorage.documents/tree/primary%3AExampleFolder%2FMedia%2F.hiddenMedia/document/primary%3AExampleFolder%2FMedia%2F.hiddenMedia%2FCristiano.jpg
Now I have that image as a DocumentFile and its URI from the above folder.
DocumentFile documentFile = DocumentFile.fromSingleUri(context, fileUri);
fileUri
is the URI of the DocumentFile.
Note :- The files in the folder cannot be accessed via MediaStore API because the folder is hidden
Usually this DocumentFile can be either an Image or a Video file.
How do I copy the Image/Video from the DocumentFile to Pictures/My App
using MediaStore API.
Thanks in Advance!