Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
告诉android在打开具有特定扩展名的文件时启动我的应用程序_Android_Android Intent_Intentfilter - Fatal编程技术网

告诉android在打开具有特定扩展名的文件时启动我的应用程序

告诉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

我已经编写了一个应用程序,它只加密我制作的特殊文件,我找不到方法告诉标准dataexplorer使用我的应用程序打开此扩展。这就是我的意图过滤器当前的外观:

<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使用我的应用程序打开此扩展?

您看到这个问题了吗?没有。确实是我需要的。非常感谢。