Open custom file type with my application under android [closed]

  

What I want: To be able to import my custom file by mail with my application from the preview button in GMail or when opening it in a file browser.

I have added the intent-filter in the AndroidManifest.template.xml file:

<intent-filter android:label=”%activityLabel%”>
<action android:name=”android.intent.action.VIEW”/>
<category android:name=”android.intent.category.DEFAULT”/>
<category android:name=”android.intent.category.BROWSABLE”/>

<data android:scheme=”file” android:pathPattern=”.*\\.ksm” android:mimeType=”application/*”/>
<data android:scheme=”content” android:pathPattern=”.*\\.ksm” android:mimeType=”application/*”/>
</intent-filter>

But when i click the file with extension ksm in “My Files” i reciev the message:

Search the Play Store? You don’t have any apps that can open this type
of file. You can search for one in the Play Store.

Comments are closed.