Unfortunately, it seems like Android does not allow for the creation or registration of custom mime types, at least not outside of your own app's process space. Additionally, filtering for file extensions no longer works and it seems that that's not going to change anytime soon, because Android simply does not honor the concept of file extensions at all.application/sqrl?
That's what I was trying to ask above: https://sqrl.grc.com/threads/sqrl-pop-up-when-accessing-google-drive-files-when-offline.717/#post-5661When someone opens a file so your android application sees it, is there a way there to look at the file name and can you then manually filter on the file name and then say to the event handler false "I could not handle this file ask someone else" or true "yeah I handled this file", is that something that the API allows?
Yes, this is what we're usingAlso is this what you guys use: https://developer.android.com/guide/topics/manifest/data-element.html ?
Yes, that's how it looks on the surface. But unfortunately, forIt does allow pattern matching on path/filename *.sqrl would be what you could use then, if that works at least, I don't know since I am not an android developer.
android:scheme="content", the pattern matching does not work. And as I tried to explain earlier, this is not regarded as a bug by Google, since Android officially does not support or understand the concept of file extensions.
android:scheme="content", where pattern matching was possible. Now it isn't anymore.
Acutally, if you read the replies and follow-ups to the accepted answer on this SO post, you'll find people reporting exactly what I've explained above.Also this might be relevant: https://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension
I could not agree more. I'll open an issue for this.We might even consider removing the feature. We now have the option to open files and this feature is just one to be feature complete and not a feature widely used I believe.