title: Weird behaviour while trying to get picture from DCIM
body: <p>I am trying to load a picture in my activity from DCIM. 
  I use the following code : </p>
  
  <pre><code>int BROWSE_PICTURES = 0;
  public void openBrowsePictures() {
      Intent i = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
  
      startActivityForResult(i, BROWSE_PICTURES);
  }
  </code></pre>
  
  <p>and in onActivityResult : </p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      if (requestCode == BROWSE_PICTURES &amp;&amp; resultCode == RESULT_OK &amp;&amp; null != data) { // we have bitmap from filesystem!
          Uri selectedImage = data.getData();
          Log.d("CAMERA","____"+selectedImage.toString());
  
  
          String[] filePathColumn = {MediaStore.Images.Media.DATA};
  
  
  
          Cursor cursor = getContentResolver().query(
                  selectedImage, filePathColumn, null, null, null);
          cursor.moveToFirst();
  
          int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
          Log.d("CAMERA", " column : " + columnIndex);
          String filePath = cursor.getString(columnIndex);
          cursor.close();
  
  
          Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);
  
  
          Log.d("CAMERA", "----" + filePath);
      }
  }
  </code></pre>
  
  <p>The situation becomes strange when I try to load a taken picture from filesystem. It works
  as expected when a. I choose a picture from EasyScreenshot file but when b. I choose picture from DCIM/Camera path it does not work. 
  If I run the code the  Log.d at the a. case  prints : </p>
  
  <blockquote>
    <p>CAMERA﹕ ____content://media/external/images/media/27487</p>
  </blockquote>
  
  <p>and the second Log.d :</p>
  
  <blockquote>
    <p>CAMERA﹕ ----/storage/emulated/0/Pictures/Screenshots/Screenshot_2014-12-18-15-14-22.png</p>
  </blockquote>
  
  <p>but , in case b it prints the following : </p>
  
  <p>the first log.d : </p>
  
  <blockquote>
    <p>CAMERA: ____content://com.google.android.apps.photos.content/0/https%3A%2F%2Flh5.googleusercontent.com%2F7tUacBA_4oYS2Q8CmkINWHa93B_n7heNyt3OyVZgkY8%3Ds0-d</p>
  </blockquote>
  
  <p>and the second log.d : </p>
  
  <blockquote>
    <p>CAMERA﹕ ----null</p>
  </blockquote>
  
  <p>I test the application in a nexus 4 device running Android 5.0.1 </p>
  
  <p>Thank you in advance</p>