title: Intent filter for files only
body: <p>in our app, we want to appear in the "Share via" menu. So we added this intent-filter to our activity : </p>
  
  <pre><code>&lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.SEND" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;data android:mimeType="application/*" /&gt;
      &lt;data android:mimeType="audio/*" /&gt;
      &lt;data android:mimeType="image/*" /&gt;
      &lt;data android:mimeType="text/*" /&gt;
      &lt;data android:mimeType="video/*" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>It works and our app appears in the Share menu.</p>
  
  <p>Nevertheless, the intent filter doesn't do exactly what we want to achieve : </p>
  
  <ol>
  <li>we want to appear in the menu for all files, whatever there mime type is</li>
  <li>we want to appear only for files. And up to now, if the user wants to share a simple text, as its mime type will be text/plain, our app appears in the menu and we don't want it.</li>
  </ol>
  
  <p>What would the correct intent-filter be for all files and only for files ?</p>
  
  <p>Thanks in advance.</p>
  
  <hr>
  
  <p>We tried to add scheme=file and host="" or "*" and it doesn't work as many app use a scheme=content to share file based content.</p>