title: MediaStore - Uri to query all types of files (media and non-media)
body: <p>In the class <a href="http://developer.android.com/reference/android/provider/MediaStore.Files.html" rel="noreferrer">MediaStore.Files</a> class, its mentioned that,</p>
  
  <blockquote>
    <p>Media provider table containing an index of all files in the media storage, including non-media files.</p>
  </blockquote>
  
  <p>I'm interested in querying for non-media files like PDF.</p>
  
  <p>I'm using CursorLoader to query the database. The second parameter for the constructor requires an Uri argument which is easy to get for the media types Audio, Images and Video as each of them have a <code>EXTERNAL_CONTENT_URI</code> and <code>INTERNAL_CONTENT_URI</code> constant defined for them.</p>
  
  <p>For MediaStore.Files there is no such defined constant. I tried using the <code>getContentUri()</code> method but couldn't figure out the argument value for <code>volumeName</code>. I tried giving "/mnt/sdcard" and also the volume name that appears when I connect the device to my system but in vain.</p>
  
  <p>I saw a <a href="https://groups.google.com/forum/?fromgroups#!topic/android-developers/6hUaqt_1ubY" rel="noreferrer">similar question on Google Groups</a> but that is not resolved.</p>
  
  <p>EDIT: I also tried using Uri.fromFile(new File("/mnt/sdcard/")) and Uri.parse(new File("/mnt/sdcard").toString()) but that didn't work out either.</p>