Question about opening files of custom extensions on Android
See original GitHub issueHello! allowedFileTypes should be a known MIME on Android. All of my custom extension registered in [NativeFilePicker Custom Types] can’t be picked on Android 11 (they are grayed).
The only possible workaround I’ve found is using “application/octet-stream”
allowedFileTypes.Add("application/octet-stream");
The problem is that Android 11 creates a new file duplicate in the app’s temp storage (where this file is accessible), but its’ extension is “.bin”. So I’m wondering is there any way to know the original file path? For now I have to try all possible extensions int try/catch block to read “.bin” files.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Register to open files with custom extension, API 31
My app stores data in files in a custom XML-like format using a specified file extension. I want to be able to open...
Read more >eligible "OPEN WITH" for own file extension (*.abc)
I want see my app in "OPEN WITH " menu when open "xxx.abc" in file maneger. How can I do it???? how can...
Read more >Access documents and other files from shared storage
About content providers · Content provider basics · Creating a content provider · Open files using storage access framework · Create a custom...
Read more >How to Open CUSTOM File on Windows, Mac OS, Android
File extension CUSTOM is used by operating systems to recognize files with content of type CUSTOM. Here is some information which will get...
Read more >Common intents
An intent lets you start an activity in another app by describing an action you'd like to perform, such as "view a map"...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it doesn’t add .bin anymore.
Oh, sorry, I’ve missed your reply. I’ll check this asap.