title: Image uri doesn't display images on ImageView on some android device
body: <p>I have an ImageView. When you click on a ImageView, it will open gallery and you pick up a image and show it on ImageView. I have a condition that when I close my app and then I open it, the image will retain there .
  So for that, I am storing image Uri on sharedprefrence.
  And on opening the application i am retrieving the same Uri and tries to display the image on imageView.</p>
  
  <p>However in some phones - image appears perfect like Mi(Lollipop), Samsung(KitKat) 
  but it doesn't appear in phones like - Motorola(Marshmallow) ,One Plus One (Marshmallow).
  Any idea why it's happening ?
  Here is my code</p>
  
  <p>For picking up an image i am using </p>
  
  <pre><code>Intent intent=new Intent();intent.setType("image/*");
  intent.setAction(Intent.ACTION_GET_CONTENT);
  startActivityForResult(Intent.createChooser(intent, "Select Picture"), Constants.SELECT_PICTURE);
  </code></pre>
  
  <p>And on OnActivityResult() code is </p>
  
  <pre><code> @Override
   protected void onActivityResult(int requestCode, int resultCode, Intent data) {
       super.onActivityResult(requestCode, resultCode, data);
  
       if(requestCode==Constants.SELECT_PICTURE &amp;&amp; resultCode==RESULT_OK &amp;&amp; null!=data) {
           Uri uri=data.getData();
           Picasso.with(UsersProfileActivity.this)
               .load(uri)
               .centerCrop()
               .resize(200,200)
               .into(img_photo);
  
           // This profile image i am storing into a sharedpreference        
           profile_image=uri.toString();
       }
  </code></pre>
  
  <p>And while retrieving from sharedprefrence I convert String to uri by using <code>Uri.parse(profile_image)</code></p>
  
  <p>However if I notice, uri returns for different android phone is as follows</p>
  
  <pre><code>Mi(Lollipop)- Uri=content://media/external/images/media/12415
  samsung(KitKat)-Uri=content://media/external/images/media/786
  Motorola(Marshmallow)- Uri=content://com.android.providers.media.documents/document/image%3A30731
  One Plus One (Marshmallow)- Uri=content://com.android.providers.media.documents/document/image%3A475
  </code></pre>
  
  <p>Hence when uri content is -content://media/external/images/media/ is display image on ImageView Perfect and in other cases it is not</p>