title: Android: Open private file with third party app
body: <p>I am making an application that downloads files from the internet and allows the user to open these files using third party applications. I store these files in my private application directory using <a href="http://developer.android.com/reference/android/content/Context.html#getFilesDir()" rel="nofollow noreferrer"><code>getFilesDir()</code></a>.</p>
  
  <p>However, seems like these files can't be accessed by third party apps because when I try to open them (using a 3rd-party app chooser like <a href="https://stackoverflow.com/questions/17453105/android-open-pdf-file">this one</a>), it is unable to open the file. Is there a permission I need to enable to share my files with other apps?</p>
  
  <p>EDIT: it seems like to use a <a href="https://developer.android.com/reference/android/support/v4/content/FileProvider.html" rel="nofollow noreferrer"><code>File Provider</code></a>, you need to specify the package name of the 3rd-party-app for which you want to provide access to. Is this correct, or is there a workaround to provide general 3rd-party-access? </p>