I’m trying to associate my activity with a particular file extension. Here’s my intent filter:
<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"
android:host="*"
android:mimeType="*/*"
android:pathPattern=".*\\.jcrlccip" />
</intent-filter>
However I’m still not able to match the file type. In fact, this matches nothing.
I’ve pretty much tried all the permutations. .* matches everything; anything after * fails.
What am I doing wrong? Thanks
What file extension are you using here?
Do you want like PDF or video file or image file?
Example code: