Android Developers
Shared publicly -Virtual Files, Alternative Mime Types, and the Storage Access Framework
New in #AndroidNougat, apps using the Storage Access Framework can now provide virtual files - files without a direct bytestream representation. While you can’t use openInputStream() with these virtual files, you can use Android 7.0’s alternative mime types to potentially transcode the files into alternative file formats or simply use them with an ACTION_VIEW Intent to open them in their native editor.
Check out the documentation on virtual files at https://developer.android.com/about/versions/nougat/android-7.0.html#virtual_files and read more about the Storage Access Framework at https://developer.android.com/guide/topics/providers/document-provider.html
#BuildBetterApps.
New in #AndroidNougat, apps using the Storage Access Framework can now provide virtual files - files without a direct bytestream representation. While you can’t use openInputStream() with these virtual files, you can use Android 7.0’s alternative mime types to potentially transcode the files into alternative file formats or simply use them with an ACTION_VIEW Intent to open them in their native editor.
Check out the documentation on virtual files at https://developer.android.com/about/versions/nougat/android-7.0.html#virtual_files and read more about the Storage Access Framework at https://developer.android.com/guide/topics/providers/document-provider.html
#BuildBetterApps.
55
23

Ian Lake
+
1
2
1
2
1
Really, really make sure you're either using CATEGORY_OPENABLE or handle virtual files appropriately!
Add a comment...


































