Questions tagged [android-document-provider]
8 questions
2
votes
1 answer
When Android use msf: after select a file
I have an app to select a file from storage. My app crashed cause of old library not updated for years. I found the problem that when android returns a uri like "content://...." sometimes it have "msf:", example like:…

Prieyudha Akadita S
- 390
- 4
- 14
1
vote
0 answers
How to get file from 'DocumentFile' and send that file to server using retrofit multipart in Android 10 and above
I am able to open the file explorer and get the file in DocumentFile object but i am stuck with the next step ie. to send the file as multipart.
Step 1: Open the file explorer
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
…

Darsh Sanghvi
- 158
- 6
0
votes
0 answers
Stream file from my cloud app to 3rd party app (handle read/write byte[] requests) in Android
I want to stream my files directly from my cloud app to 3rd party apps, without downloading the file in advance on non-rooted device.
For example: When I create an Intent to open an audio file from my Cloud app with any 3rd party audio player, the…

Peter Baev
- 41
- 4
0
votes
1 answer
How to add App specific permissions to Android DocumentProvider
I want to create a file in AppA and then be able to access it from AppB only. I am able to create the file via the DocumentProvider and then access it via StorageClient see examples here. How do I setup the permission on the file in AppA so that…

CruncherBigData
- 1,112
- 3
- 14
- 34
0
votes
1 answer
Android DocumentProvider crashes Files-App / DocumentsUI
Hey i have a problem providing Documents with DocumentProvider
actually im trying to provide a static file but if i open my files app
and following exception occurs.
The Files-App is crashing but if i am trying to show only directory in my…

user14590906
- 55
- 1
- 6
0
votes
1 answer
Missing Document Providers using Intent.ActionCreateDocument
When I use Intent.ActionOpenDocument as the activity the resulting picker shows all available document providers. When I use Intent.ActionCreateDocument the resulting picker shows a limited subset of document providers. Does anyone know of a method…

Mike N.
- 23
- 5
0
votes
0 answers
Intent.ACTION_OPEN_DOCUMENT_TREE and DocumentsContract.buildChildDocumentsUri do not match
I want to list only files of certain Folder.
Im Using Intent.ACTION_OPEN_DOCUMENT_TREE to let the user pick the folder. the URI is safed in sharedPrefs.
Then im trying to get the children from that URI by using
val childrensUriUsingTree =…

babuntu
- 27
- 8
0
votes
0 answers
Choosing file using Intent.ACTION_OPEN_DOCUMENT and uploading to server using Retrofit2
There are some related questions about choosing and uploading files
from Android. But those answers are outdated and most of the methods
in those responses are gone/deprecated.
I am trying to get a file from the local storage using…

zoha131
- 1,758
- 2
- 16
- 18