远程内容上mime类型的Android意图过滤器

远程内容上mime类型的Android意图过滤器,android,android-intent,intentfilter,Android,Android Intent,Intentfilter,我想创建一个意图过滤器,以便匹配来自一个特定主机的所有json文档。 我不能使用pathpattern,因为相关部分在查询中,并且据我所知和测试,我无法匹配查询部分。所以我的想法是在哑剧类型上进行匹配——但我在这里很挣扎。 URL返回正确的内容类型-我用curl-I检查过 ➜ ~ curl -s -I "https://engelsystem.de/32c3/?p=shifts_json_export&key=c7caceaaXXXXXXXXXXXXXx" | grep Cont

我想创建一个意图过滤器,以便匹配来自一个特定主机的所有json文档。
我不能使用pathpattern,因为相关部分在查询中,并且据我所知和测试,我无法匹配查询部分。所以我的想法是在哑剧类型上进行匹配——但我在这里很挣扎。 URL返回正确的内容类型-我用curl-I检查过

➜  ~  curl  -s -I  "https://engelsystem.de/32c3/?p=shifts_json_export&key=c7caceaaXXXXXXXXXXXXXx" | grep Content
Content-Type: application/json; charset=utf-8
但当我有:

android:mimeType="application/json"
甚至

android:mimeType="application/*"
作为意图过滤器->则不再有匹配项

根据全意图过滤器的要求:

    <activity android:name=".ImportKeyFromURL">
        <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:mimeType="application/*"
                android:host="engelsystem.de"
                android:scheme="https" />
        </intent-filter>
    </activity>


发布整个
请“我在查询部分无法匹配”--正确。@DavidWasser添加了完整的意图过滤器在整个
之后请“我在查询部分无法匹配”--正确。@DavidWasser添加了完整的意图过滤器