title: Open a Google Drive File Content URI after using KitKat Storage Access Framework
body: <p>I am using the Storage Access Framework for android 4.4 and opening the file picker.</p>
  
  <p>Everything works except when choosing a file from Google Drive, I can only figure out how to open it as an input stream, but I would like to get a java File object.</p>
  
  <p>The content uri that's being returned looks something like this:  content://com.google.android.apps.docs.storage/document/acc%3D4%3Bdoc%3D2279</p>
  
  <p>Other questions that are similar but do not have a working solution which allows me to get the filename, filesize and contents:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/20067508/get-real-path-from-uri-android-kitkat-new-storage-access-framework">Get real path from URI, Android KitKat new storage access framework</a></li>
  <li><a href="https://stackoverflow.com/questions/19834842/android-gallery-on-kitkat-returns-different-uri-for-intent-action-get-content">Android Gallery on KitKat returns different Uri for Intent.ACTION_GET_CONTENT</a></li>
  </ul>
  
  <p>I've also looked into Paul Burke's FileChooser ( <a href="https://github.com/iPaulPro/aFileChooser" rel="noreferrer">https://github.com/iPaulPro/aFileChooser</a>) and this is the most common question on the issue's list.</p>
  
  <p>How can I get a file from that content uri?</p>
  
  <p>My current workaround is to write out a temporary file from an inputstream.</p>
  
  <p>Thanks!</p>