Thanks for the suggestions. I have managed to get things to work so that if I run a File Explorer app and I click on one of my .crl data files my app runs.
The code I have added to the default Manifest is:
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:host="*" />
<data android:pathPattern=".*.crl" />
<data android:mimeType="*/*" />
</intent-filter>)
(By the way, the examples I found suggested the pathPattern should be ".*\\.crl" but I don't understand why the double escape (\\) is required; the period (.) character doesn't need escaping does it to make it a literal? The manifest given above seems to work fine for me.)
What I have failed to achieve is the passing of the clicked file to my app. How do I get the File Explorer app, or the Android OS to send the file URI to my app? In an attempt to check if any info is being sent to my app I have added the following to my Activity_Resume sub:
Sub Activity_Resume
Dim in As Intent
in = Activity.GetStartingIntent
Log (in.ExtrasToString)
End Sub
All I get is "no extras" in my logs. Tested in both Debug and Release modes. B4A 7.01
Thanks,
Martin