0
Today the option to "open with" lists several programs that are installed on mobile and including my app. I would like my app to be an option only for the files of the extension it works, in this case "*. rlc".
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="*/*"/>
<data android:pathPattern=".*\\.rlc" />
</intent-filter>
</activity
My app opens normally. The problem is that my app is listed for any file. Image for example. I don’t want to open image with my app understands?
– Artur Gaspar
So you want to filter it to only open rlc, right?!
– viana
Yes, let my app be listed only in rlc files. Today it is listed for any type of file. It’s not a real problem, but I think it gets a little boring for the person to appear a program that can’t perform the function he wants to understand? For example Android offer my app to a jpg.
– Artur Gaspar
The way you did is right. But try to add this:
<category android:name="android.intent.category.BROWSABLE" />
 <data android:scheme="file" /> <data android:host="*"
– viana
It worked! Now if I try to open a cbr, for example, my app is not listed. If I try to open a rlc it appears and I have to leave as default application. PERFECT! thank you very much!
– Artur Gaspar