Ignore specific Urls from Intent filter
<p>How to ignore specific set of URLs from Intent Filter.
Existing filter.</p>

<pre><code>&lt;intent-filter android:autoVerify="true"&gt;
    &lt;action android:name="android.intent.action.VIEW" /&gt;

    &lt;category android:name="android.intent.category.DEFAULT" /&gt;
    &lt;category android:name="android.intent.category.BROWSABLE" /&gt;

    &lt;data android:host="www.example.com" android:scheme="http" /&gt;
    &lt;data android:host="www.example.com" android:scheme="https" /&gt;
    &lt;data android:host="example.com" android:scheme="http" /&gt;
    &lt;data android:host="example.com" android:scheme="https" /&gt;
&lt;/intent-filter&gt;
</code></pre>

<p>With the above filter, all URLs opens in the app. I want to ignore few URLs &amp; it has to opened using browser.
Example urls to be ignored.</p>

<pre><code>https://www.example.com/privacy-policy
https://www.example.com/tos
https://www.example.com/faq
</code></pre>

<p>The below code directly opens the app.</p>

<pre><code>Uri uri = Uri.parse("https://www.example.com/privacy-policy");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent); // Opens the app directly.
// startActivity(Intent.createChooser(intent, "Select browser")); // Shows current app only.
</code></pre>