【发布时间】:2014-01-06 04:08:56
【问题描述】:
我的 AndroidManifest.xml 中有以下意图过滤器,它在 Android 2.x.x 中运行良好,在 Android 4.x.x 中没有任何作用:
<intent-filter
android:icon="@drawable/ic_fx_603p_pf"
android:label="FX-603P Program File"
android:priority="1"
>
<category
android:name="android.intent.category.DEFAULT"
></category>
<action
android:name="android.intent.action.VIEW"
></action>
<data
android:host="*"
android:pathPattern=".*\\.pf"
android:scheme="file"
></data>
</intent-filter>
问题是:发生了什么变化,我怎样才能让意图再次起作用?
预期行为:在文件管理器(如 Astro)中选择扩展名为 *.pf 的文件时,我的应用程序应启动并打开文件。文件管理器也应该使用我们提供的图标来可视化文件。
【问题讨论】:
标签: android android-intent android-manifest