Does anyone know of code example to allow my all to be included in an OpenWith?
For example, i would like the app to show up for opening file with extension of .json of .geojson or whatever (but always text), for example; and receive the file for processing.
Does anyone know of code example to allow my all to be included in an OpenWith?
For example, i would like the app to show up for opening file with extension of .json of .geojson or whatever (but always text), for example; and receive the file for processing.
You need to use Android's Intent Filter system to register it as a handler for specific file types. This is done by declaring an <intent-filter> inside your app's manifest.
Here is a sample: