This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Support virtual files on Android #523
Open
Description
Files provided by document providers on Android can be "Virtual", meaning it doesn't have a binary representation of its own you can call openInputStream
on, but if supported can be converted to a binary representation of various mime types. Instead when you know the file is virtual you use getStreamTypes(uri, mimeTypeFilter)
to negotiate a valid alternate mime type ("*/*"
is a valid filter to make the provider choose the best representation from anything) and then use resolver.openTypedAssetFileDescriptor(uri, mimeType, ...)
to get an InputStream.
https://developer.android.com/guide/topics/providers/document-provider.html#virtual
Is there any plan to support virtual files?