alexrintt / shared-storage

Flutter plugin to work with Android external storage.
http://alexrintt.io/shared-storage/
MIT License
53 stars 25 forks source link

Intent `ACTION_VIEW` not working properly #64

Closed alexrintt closed 2 years ago

alexrintt commented 2 years ago

Describe the bug

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...

Screenshots

Not applicable.

Additional context

Solution is available here at android/storage-samples.

alexrintt commented 2 years ago

Closed by #63 and #67.