title: File does not exist from gallery intent issue?
body: <p>I am getting an image from gallery using ACTION_PICK intent :-</p>
  
  <pre><code>    Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
      intent.setType("image/*");
      startActivityForResult(intent, 112);
  </code></pre>
  
  <p>and in onActivityResult(), i am getting the image by <code>getData()</code> which returns me the uri :- <code>/external/images/media/6097</code></p>
  
  <p>Now when i am setting this uri in an imageview by <code>setImageUri()</code> method of imageview, the image is showing, but when i am creating a file object to upload this image on server by :-</p>
  
  <pre><code>File imageFile = new File(uri);
  </code></pre>
  
  <p>It is saying that file does not exists. <code>imageFile.exists()</code> is returning false.</p>
  
  <p>I don't know where is the issue. I have tried this on genymotion and on device but the result is the same.
  In manifest, i have given permissions :-</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" /&gt;
  </code></pre>