When trying to open a document file through openDocumentFile API which uses ACTION_VIEW under the hood, the prompt is showing up but no data is sent to the third party application, which results in a incosistent behavior: the file is shown as a corrupted file (since the data is not being sent).
To Reproduce
Go to the example folder at the latest master commit at this time, open a folder and click on Open with option over any document.
Expected behavior
The document file should be shown properly, if it's an image it's should be displayed, if it's a video should be played and so on...
Describe the bug
When trying to open a document file through
openDocumentFile
API which usesACTION_VIEW
under the hood, the prompt is showing up but no data is sent to the third party application, which results in a incosistent behavior: the file is shown as a corrupted file (since the data is not being sent).To Reproduce
Go to the example folder at the latest master commit at this time, open a folder and click on
Open with
option over any document.Expected behavior
The document file should be shown properly, if it's an image it's should be displayed, if it's a video should be played and so on...
Screenshots
Not applicable.
Additional context
Solution is available here at android/storage-samples.