Custom Filetype in Android not working

后端 未结 1 867
醉酒成梦
醉酒成梦 2020-12-20 23:35

I\'m currently writing an Android App and it should open Files with the ending .meetme

Actually it should open them directly from Gmail, but I don\'t think that is p

相关标签:
1条回答
  • 2020-12-21 00:19

    After a lot of trial and error and reading nearly everything I could find, here's what finally worked for me:

        <activity android:name=".DrawActivity"
                  android:screenOrientation="portrait"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </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:pathPattern="*.snowdragon"/>
                <data android:mimeType="text/snowdragon"/>
            </intent-filter>
        </activity>
    
    0 讨论(0)
提交回复
热议问题