Hi,
I am trying to put these settings in the build.settings file for Android but don’t know how to to it because the data have 2 schemes and multiple pathPatterns. Any suggestions?
\<intent-filter\> \<action android:name="android.intent.action.VIEW" /\> \<category android:name="android.intent.category.DEFAULT" /\> \<category android:name="android.intent.category.BROWSABLE" /\> \<data android:scheme="file" /\> \<data android:scheme="content" /\> \<data android:mimeType="\*/\*" /\> \<!-- Work around Android's ugly primitive PatternMatcher implementation that can't cope with finding a . early in the path unless it's explicitly matched. --\> \<data android:host="\*" /\> \<data android:pathPattern=".\*\\.sfx" /\> \<data android:pathPattern=".\*\\..\*\\.sfx" /\> \<data android:pathPattern=".\*\\..\*\\..\*\\.sfx" /\> \<data android:pathPattern=".\*\\..\*\\..\*\\..\*\\.sfx" /\> \<!-- keep going if you need more --\> \</intent-filter\>
I tried something like this, but I don’t know how to do with the second scheme (<data android:scheme=“content” />) and multiple android:pathPatterns
android = { intentFilters = { { actions = { "android.intent.action.VIEW" , }, categories = { "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = { scheme = "file", host = "\*" , mimeType = "\*/\*", pathPattern = ".\*\\.sfx" }, }, }, },
What I am trying to do is when I tap a custom file ( say file1.sfx ) in my email. A list of applications will pop up and I can choose my android app to open it. I’ve already done this on iOS. I am trying to do this Android. Any suggestions?