title: How can make a FileProvider available to other applications?
body: <p>Is it possible to have a FileProvider available to other applications ? </p>
  
  <p>manifest.xml</p>
  
  <pre><code>...
   &lt;provider
          android:name="android.support.v4.content.FileProvider"
          android:authorities="com.example.myapp.fileprovider"
          android:exported="true"
          android:grantUriPermissions="false"
          android:permission="com.example.filesvisible.permission.READ" &gt;
          &lt;meta-data
              android:name="android.support.FILE_PROVIDER_PATHS"
              android:resource="@xml/filespath" /&gt;
      &lt;/provider&gt;
  ...
  </code></pre>
  
  <p>From the <a href="http://developer.android.com/guide/topics/manifest/provider-element.html" rel="noreferrer">doc</a>:</p>
  
  <blockquote>
    <p>false: The provider is not available to other applications. Set
    android:exported="false" to limit access to the provider to your
    applications. Only applications that have the same user ID (UID) as
    the provider will have access to it.</p>
  </blockquote>
  
  <p>I've tried to set exported to true but I got this exception 
  <code>Unable to get provider android.support.v4.content.FileProvider: java.lang.SecurityException: Provider must not be exported</code> Why I can't export a FileProvider ?</p>