title: How to open BIN file from Android app with custom extension?
body: <p>I am trying to open a file with <code>Intent.ACTION_OPEN_DOCUMENT</code> in Android Studio, and most formats I need open perfectly. However, BIN files are not 'caught' by my current filter, and I cannot figure out why. I am using the octet-stream mime type. </p>
  
  <p>My intent-filter code is shown below.</p>
  
  <pre><code>&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:scheme="content" /&gt;
  
                  &lt;data android:mimeType="application/gzip" /&gt;
                  &lt;data android:mimeType="application/octet-stream" /&gt;
                  &lt;data android:mimeType="text/xml" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>Thanks.</p>