Android Question File Association

Gearcam

Active Member
Licensed User
Longtime User
I am trying to use the following manifest edited:

B4X:
'*****************************************************
'*** FILTER INTENTS BASED ON CLICKING A BROWSED FILE
'*****************************************************
'Handle intent from a file click simply based on file extensionAddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:host="*" />
<data android:pathPattern=".*\\.des1" />
<data android:mimeType="*/*" />
</intent-filter>)

It changes the manifest and installs the app

But if imake a *.des1 file clicking it does not open the app but asks "Open as ...."
 
Last edited:

Gearcam

Active Member
Licensed User
Longtime User
looks like this wont work then back to basics.

All I am trying to do is open files in my one drive account what other method can I use ?
 
Upvote 0

Gearcam

Active Member
Licensed User
Longtime User
sounds like a plan
my normal loading part of the program uses the "my file manager" example V1

Is theire an example to navigate and chose files with "contentchooser" ?
 
Upvote 0

Gearcam

Active Member
Licensed User
Longtime User
I am trying to set this up using the file picker but it say Maven artefact not found updated the sdk as help said

I must need some library ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…