title: Image from Gallery in Android 6(Marshmallow)
body: <p>In My Application I am trying to Pick image from galley, so as to pass that image to server.</p>
  
  <p>Code is working fine on Android 5 and below, but for Android 6 on Nexus 5 I am not able to get image information. <strong><em>Log trace which I got</em></strong></p>
  
  <p><strong>Note</strong>: Code is working fine on Android 5 and below versions</p>
  
  <pre><code>11-06 12:27:43.736: W/System.err(31678): java.lang.SecurityException: Permission Denial: reading com.google.android.apps.photos.contentprovider.MediaContentProvider uri content://com.google.android.apps.photos.contentprovider/0/1/content%3A//media/external/images/media/19138/ACTUAL/94710853 from pid=31678, uid=10111 requires the provider be exported, or grantUriPermission()
  11-06 12:27:43.757: W/System.err(31678): 
  at android.os.Parcel.readException(Parcel.java:1599)
  11-06 12:27:43.757: W/System.err(31678): 
  at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
  11-06 12:27:43.757: W/System.err(31678): 
  at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
  11-06 12:27:43.757: W/System.err(31678): 
  at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
  11-06 12:27:43.757: W/System.err(31678): 
  at android.content.ContentResolver.query(ContentResolver.java:491)
  11-06 12:27:43.757: W/System.err(31678): 
  at android.content.ContentResolver.query(ContentResolver.java:434)
  11-06 12:27:43.758: W/System.err(31678): 
  at org.apache.cordova.file.ContentFilesystem.openCursorForURL(ContentFilesystem.java:258)
  11-06 12:27:43.758: W/System.err(31678): 
  at org.apache.cordova.file.ContentFilesystem.getFileMetadataForLocalURL(ContentFilesystem.java:169)
  11-06 12:27:43.758: W/System.err(31678): 
  at org.apache.cordova.file.FileUtils.getFileMetadata(FileUtils.java:822)
  11-06 12:27:43.758: W/System.err(31678): 
  at org.apache.cordova.file.FileUtils.access$500(FileUtils.java:52)
  11-06 12:27:43.758: W/System.err(31678): 
  at org.apache.cordova.file.FileUtils$15.run(FileUtils.java:394)
  11-06 12:27:43.758: W/System.err(31678): 
  at org.apache.cordova.file.FileUtils$25.run(FileUtils.java:551)
  11-06 12:27:43.758: W/System.err(31678): 
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
  11-06 12:27:43.758: W/System.err(31678): 
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
  11-06 12:27:43.758: W/System.err(31678): 
  at java.lang.Thread.run(Thread.java:818)
  </code></pre>