告诉android在打开具有特定扩展名的文件时启动我的应用程序
我已经编写了一个应用程序,它只加密我制作的特殊文件,我找不到方法告诉标准dataexplorer使用我的应用程序打开此扩展。这就是我的意图过滤器当前的外观:告诉android在打开具有特定扩展名的文件时启动我的应用程序,android,android-intent,intentfilter,Android,Android Intent,Intentfilter,我已经编写了一个应用程序,它只加密我制作的特殊文件,我找不到方法告诉标准dataexplorer使用我的应用程序打开此扩展。这就是我的意图过滤器当前的外观: <activity android:name="ImportDataActivity" > <intent-filter> <action android:name="android.intent.action.VIEW" /> <action and
<activity
android:name="ImportDataActivity" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="application/octet-stream"
android:host="*"
android:pathPattern=".*\\.mEn"
/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="application/.mEn"
android:host="*"
android:pathPattern=".*\\.mEn"
/>
</intent-filter>
</activity>
如何使标准dataexplorer使用我的应用程序打开此扩展?您看到这个问题了吗?没有。确实是我需要的。非常感谢。