title: My app won't show up on the chooser dialog for android.intent.action.VIEW with mime type video/* only on Marshmallow
body: <p>Basically when an app shares a video url my app is supposed to show up on the list but it doesn't. Neither does MXPlayer but the Google Photos media player shows up fine as well as allcast (which had a recent release to fix this). </p>
  
  <p>I wrote a quick app to test this issue, here are my manifest filters:</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;
  
  &lt;intent-filter&gt;
      &lt;category android:name="android.intent.category.DEFAULT"/&gt;
      &lt;data android:mimeType="text/plain"/&gt;
      &lt;data android:mimeType="video/*"/&gt;
      &lt;data android:mimeType="audio/*"/&gt;
      &lt;data android:mimeType="image/*"/&gt;
      &lt;action android:name="android.intent.action.SEND"/&gt;
  &lt;/intent-filter&gt;
  
  &lt;intent-filter&gt;
      &lt;category android:name="android.intent.category.DEFAULT"/&gt;
      &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
      &lt;data android:mimeType="video/*" android:scheme="http"/&gt;
      &lt;data android:mimeType="audio/*" android:scheme="http"/&gt;
      &lt;data android:mimeType="image/*" android:scheme="http"/&gt;
      &lt;data android:mimeType="video/*" android:scheme="https"/&gt;
      &lt;data android:mimeType="audio/*" android:scheme="https"/&gt;
      &lt;data android:mimeType="image/*" android:scheme="https"/&gt;
      &lt;data android:mimeType="video/*" android:scheme="file"/&gt;
      &lt;data android:mimeType="audio/*" android:scheme="file"/&gt;
      &lt;data android:mimeType="image/*" android:scheme="file"/&gt;
      &lt;action android:name="android.intent.action.VIEW"/&gt;
  &lt;/intent-filter&gt;
  
  &lt;intent-filter&gt;
      &lt;category android:name="android.intent.category.DEFAULT"/&gt;
      &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
      &lt;data android:host="*" android:pathPattern=".*\\.mp4" android:scheme="http"/&gt;
      &lt;action android:name="android.intent.action.VIEW"/&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>And this is the code to reproduce the issue:</p>
  
  <pre><code>Intent intent = new Intent("android.intent.action.VIEW");
  intent.setDataAndType(Uri.parse("http://media.w3.org/2010/05/sintel/trailer.mp4"),"video/*");
  startActivity(intent);
  </code></pre>
  
  <p>This is only an issue on Marshmallow. </p>
  
  <p>EDIT: I should add that not all Marshmallow devices do this. It took me a long time to reproduce it from the first time I heard about it and one day it just started happening on my Nexus 5. My 6P won't reproduce this. </p>
  
  <p>EDIT: I added some debugging code prior to <code>startActivity</code>. Basically I'm asking the package manager to give me the intent activities that can handle that intent and I get back the exact same list I see on the dialog. </p>
  
  <pre><code>PackageManager manager = getBaseContext().getPackageManager();
                  List&lt;ResolveInfo&gt; infos = manager.queryIntentActivities(intent, 0);
                  if (infos.size() &gt; 0) {
                      //THE INFOS LIST HAS THE 3 APPS THAT IT SHOWS BUT MINE IS MISSING
                  }else{
  
                  }
  </code></pre>
  
  <p>EDIT: I figured adding screenshots might make it more clear. </p>
  
  <p>This is on my Nexus 5 with 6.0.1, the list is fully expanded
  <a href="https://i.stack.imgur.com/qPdMA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qPdMA.png" alt="This is on my Nexus 5 with 6.0.1, the list is fully expanded"></a></p>
  
  <p>This is on my Nexus 4 with 5.1.1, list also fully expanded
  <a href="https://i.stack.imgur.com/DctZC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DctZC.png" alt="This is on my Nexus 4 with 5.1.1, list also fully expanded"></a></p>
  
  <p>Both phones have pretty much the exact same apps.</p>