Intent-Filter: Using two actions along with Launcher and Browsable category
<p>TL;DR Can i use two actions and two categories in one intent-filter?</p>

<p>My app is made up of one activity and five fragments. I have an Intent Filter in this activity.</p>

<pre><code>&lt;intent-filter&gt;
    &lt;action android:name="android.intent.action.MAIN" /&gt;
    &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
&lt;/intent-filter&gt;
</code></pre>

<p>Today, I saw a lint message "App is not indexable by Google..." around the <code>application</code> tag in manifest file. So, I did some searching and came to know that you can use this to index your app through google search. If an android user browses web link "www.example.com/myapp" from chrome/systemBrowser, he will be taken to my app instead of web page. right?</p>

<p>Now, I have to add an ActionView to the activity. and, my intent-filter will become,</p>

<pre><code>&lt;intent-filter&gt;
    &lt;action android:name="android.intent.action.MAIN" /&gt;
    &lt;action android:name="android.intent.action.VIEW" /&gt;
    &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
    &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
    &lt;data android:scheme="http" android:host="www.example.com" android:pathPrefix="/myapp" /&gt;
 &lt;/intent-filter&gt;
</code></pre>

<p>But, I have read that using two actions is not good. It is a Logical OR operation. Intent-Filter will match only one of them:</p>

<ul>
<li><ol>
<li>an intent with MAIN action and LAUNCHER Category </li>
</ol></li>
<li><ol start="2">
<li>an intent with MAIN action and BROWSABLE Category </li>
</ol></li>
<li><ol start="3">
<li>an intent with VIEW action and LAUNCHER Category </li>
</ol></li>
<li><ol start="4">
<li>an intent with VIEW action and BROWSABLE Category </li>
</ol></li>
</ul>

<p>As i understand it, It should open app on device with first option, and when a user browses the browser with provided "www.example.com/myapp", it should use first and fourth option to open the app from link.</p>

<p>I have looked at this <a href="https://stackoverflow.com/questions/22564510/">question</a>, but i need to be sure with an example.</p>

<p>It is confusing. I might be entirely wrong, please guide me.</p>