title: Multiple file extension/mimetype intent-filters with one activity
body: <p>Gents,</p>
  
  <p>I'm trying to get it so that my Android application can respond both to files being opened (via matching their extensions) and to mime-types (so they will work from the browser).</p>
  
  <p>I've followed the advice here:</p>
  
  <p><a href="https://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension">Android intent filter for a particular file extension?</a></p>
  
  <p>but still had no luck.</p>
  
  <p>The relevant section from my android manifest file is as follows:</p>
  
  <pre><code>&lt;activity android:name="MuPDFActivity"
                android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;data android:mimeType="application/vnd.ms-xpsdocument"/&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;data android:mimeType="application/pdf"/&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;data android:mimeType="application/x-cbz"/&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&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:scheme="file"/&gt;
              &lt;data android:mimeType="*/*"/&gt;
              &lt;data android:pathPattern=".*\\.xps"/&gt;
              &lt;data android:host="*"/&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&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:scheme="file"/&gt;
              &lt;data android:mimeType="*/*"/&gt;
              &lt;data android:pathPattern=".*\\.pdf"/&gt;
              &lt;data android:host="*"/&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&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:scheme="file"/&gt;
              &lt;data android:mimeType="*/*"/&gt;
              &lt;data android:pathPattern=".*\\.cbz"/&gt;
              &lt;data android:host="*"/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>As you can see, I would like the app to be invoked for .pdf, .xps, and .cbz files, also files with the relevant mimetypes. Local tests here seem to suggest that the .pdf and application/pdf sections are both working, but try as I might, the .xps (and presumably .cbz) sections are not.</p>
  
  <p>Am I missing something obvious here? Can each Activity only have one mimetype/file pattern?</p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Thanks,</p>
  
  <p>Robin</p>