I'm trying to start my app by the click on a file (which contains data to be read by the app).
I used following intent filter setting in the manifest editor.
On a android 4.4.2 device, clicking on a .dat file opens the app, after parsing the path and filename form the intend (or better from the held URI) I can open the file as expected.
On a more android version (9.0 +) the file-extension isn' t registered at all.
I checked in DEBUG mode since the system message ("You don't have an app to open a file of this type" [translated from German!) would also show if the directory could not be reached. IMHO the more recent devices don get that far at all, in other words the file extension is not registered.
I used following intent filter setting in the manifest editor.
Project manifest:
AddActivityText(Main,
<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" />
<data android:scheme="content" />
<data android:mimeType="*/*" />
<data android:pathPattern=".*\\.dat" />
<data android:host="*" />
</intent-filter>)
On a android 4.4.2 device, clicking on a .dat file opens the app, after parsing the path and filename form the intend (or better from the held URI) I can open the file as expected.
On a more android version (9.0 +) the file-extension isn' t registered at all.
I checked in DEBUG mode since the system message ("You don't have an app to open a file of this type" [translated from German!) would also show if the directory could not be reached. IMHO the more recent devices don get that far at all, in other words the file extension is not registered.