Registering to 'Open with'

Gargoyle

Member
Licensed User
Longtime User
Is it possible to register my program to be put in the list to 'Open with' for certain types of files.

Also how would I get the filename that was to be opened? (from file explorer)

I've searched for 'register' 'open with' 'arguments' and looked through loads of topics but didn't see anything.

Any help is appreciated.
 
You will have to add this to the app's Manifest:
Code: Copy
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>)

The above example will register your app to open "images", change the Mime type accordingly.
 
Upvote 0
Found out how, by using an Intent defined variable, Activity.GetStartingIntent and GetExtra("ABSOLUTE_FILE_PATH")
 
Upvote 0
Back
Top