I am struggling with how to make a custom file extension open in my android application through the google drive ui. My file currently opens fine through dropbox or the android file explorer. Google drive seems to only consider the mime type of the file. The file extension is my own (lets say .xyz) and the file is xml on the inside. I want the file to open in my app not just any app registered to open text/xml mime types. How can i tell google drive the .xyz files are not to be treated like text/xml. Similarly i don't want my app to be registered to open all text/xml files.
So the end user workflow would be this: 1) Open Google Drive android app. 2) Tap "somefile.xyz" -> The file would be opened in my app. Currently it opens in the google drive xml viewer. 3) Tap "otherfile.xml" -> The file would not be opened in my app.