Skip to content Skip to sidebar Skip to footer

Android File Associations Not Working (intent Filter, By Extension)

I've been trying to associate my app with vrtci file extension, but it's not working. I've been looking across the internet to see what I've been doing wrong and nothing helped. H

Solution 1:

So I've just found a solution which did it for me.

Create intent-filter with scheme "content" and do not specify the host element at all.

<intent-filter><action android:name="android.intent.action.VIEW"/><category android:name="android.intent.category.DEFAULT"/><category android:name="android.intent.category.BROWSABLE"/><data android:scheme="content"/><data android:mimeType="*/*"/><data android:pathPattern=".*\\.vrtci"/><data android:pathPattern=".*\\..*\\.vrtci"/><data android:pathPattern=".*\\..*\\..*\\.vrtci"/><data android:pathPattern=".*\\..*\\..*\\..*\\.vrtci"/><data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.vrtci"/></intent-filter>

Post a Comment for "Android File Associations Not Working (intent Filter, By Extension)"