Jump to content
Felix.

[Android] How to associate my program with a certain extension?

Recommended Posts

The subject says it all. How to associate my program with a certain extension in Android? Thanks

Share this post


Link to post

IIRC, your application manifest needs to define an Intent Filter for each file extension/mime type you want to handle:

 

https://developer.android.com/guide/components/intents-filters

 

https://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension

 

Inside your code, you can use TAndroidHelper.Activity.getIntent() to get the JIntent that started your process.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×