I create an intent to let the user pick an image from their gallery:
Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_PICK); startActivityForResult(intent, REQUEST_PICK_IMAGE); Then, after the user picks an image, I handle it here:
@Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); if (requestCode == REQUEST_PICK_IMAGE) { final Uri uri = intent.getData(); Glide.with(context) .load(new File(uri.getPath())) .into(myImageView); } } The URI looks something like this:
content://com.google.android.apps.photos.contentprovider/-1/1/content%3A%2F%2Fmedia%2Fexternal%2Fimages%2Fmedia%2F43/ORIGINAL/NONE/image%2Fpng/2098318161 But it's not loading the image into the ImageView, and I don't know why.