I have an app that's supposed to handle my custom data-type .xyz
. I'm currently using the intent filter:
[IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryDefault }, DataMimeType = "application/*", DataPathPattern = "*.xzy")]
On a Pixel 2 with Android 9.0 GMail automatically opens .xyz
files when I click on that attachment. Unfortunately, my app also receives .doc
files which it can't handle appropriately.
How do look at the MimeType that gets passed to me by an app like GMail to see which mimetype was passed for to me that I can filter less general?