title: How to get the real path with ACTION_OPEN_DOCUMENT_TREE Intent?
body: <p>My app downloads and unzips a file in a specific folder:</p>
  
  <pre><code>output = new FileOutputStream(realpath, true);
  output.write(buffer, 0, bytesRead);
  
  ZipFile zipFile = new ZipFile(realpath);
  </code></pre>
  
  <p>With the new introduced <code>ACTION_OPEN_DOCUMENT_TREE</code> Intent, I would like to offer the user to choose that folder.</p>
  
  <p>When testing the values received in my <code>onActivityResult</code>, I get a Path like <code>/tree/primary:mynewfolder</code>, which is not the physical real path like <code>/sdcard/mynewfolder</code>.</p>
  
  <pre><code>Uri treeUri = data.getData();
  String sPath = treeUri.getPath();
  Log.v("Path from Tree ", sPath);
  </code></pre>
  
  <p>My unzip method need the real path:</p>
  
  <pre><code>ZipFile zipFile = new ZipFile(realpath);
  </code></pre>
  
  <p>How do I get the real path like <code>/sdcard/mynewfolder</code> from the provided URI in Lollipop (API 21 &amp; 22)?</p>