title: Android KitKat: Get the filepath of an image from "Recent" section
body: <p>From an ACTION_GET_CONTENT intent I can read the filepath of the selected file via a cursor like this:</p>
  
  <pre><code>String[] projection = { MediaStore.Images.Media.DATA};
  Cursor cursor = getContentResolver().query(data.getData(), projection, null, null, null);
  column_index_data = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); 
  cursor.moveToFirst(); 
  capturedImageFilePath = cursor.getString(column_index_data);
  cursor.close(); 
  </code></pre>
  
  <p>which gives me a usable result like this:</p>
  
  <pre><code>/storage/emulated/0/DCIM/Camera/1397538721449.jpg
  </code></pre>
  
  <p>This works fine on all my test devices, even on Android KitKat devices, except for files from the "Recent" section. capturedImageFilePath is null in this case, and if I try to read the path like this:</p>
  
  <pre><code>Uri myUri = data.getData();
  capturedImageFilePath = myUri.getPath();
  </code></pre>
  
  <p>I get something like this as a result which I can't use to decode the file:</p>
  
  <pre><code>/document/image:237
  </code></pre>
  
  <p>How do I get the actual file path? It must be possible because other apps on the devices manage to display the correct file but I haven't found any other way to do it on google. Is there a way to get form the file number above to the actual file path?</p>
  
  <p>I have this problem on a Nexus 7 and a Nexus 10 tablet, both running Android 4.4.2.</p>