I have my own file extension, for example .foo, with which I want to link my application. I created this 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="file" android:mimeType="*/*" android:pathPattern=".*\\.foo" android:host="*"/>
</intent-filter>
The problem is that this does not work on some devices. For example, for Samsung Galaxy S3 (version for Android: 4.4.2) only the following works:
<data android:scheme="file" android:mimeType="*/*" android:pathPattern=".*\\.foo" android:host="*"/>
However, with LG G2 (Android version: 4.4.2), only this line works:
<data android:scheme="file" android:pathPattern=".*\\.foo"/>
To make it even worse, Nexus 7 (Android version: 5.0) doesn't seem to recognize the end of user files at all.
Has anyone had a similar problem and knows a solution?
source
share