title: how to retrieve image from library image picker android
body: <p>excuse me i want to ask how to retrieve image from this library?</p>
  
  <p><a href="https://github.com/akshay2211/PixImagePicker" rel="nofollow noreferrer">https://github.com/akshay2211/PixImagePicker</a></p>
  
  <p>i don't know how to retrieve image from that library. i want to show on my main activity.
  i have been try from guide add this code</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
              if (resultCode == Activity.RESULT_OK &amp;&amp; requestCode == RequestCode) {
                  ArrayList&lt;String&gt; returnValue = data.getStringArrayListExtra(Pix.IMAGE_RESULTS);
          }
      }
  </code></pre>
  
  <p>and this is my source code for retrieve image using glide</p>
  
  <pre><code> for (int i = 0; i &lt; returnValue.size(); i++) {
              String path = returnValue.get(i);
              StringBuilder builder = new StringBuilder(path);
              builder.deleteCharAt(0);
              File file = new File(builder.toString());
              Uri imageUri = Uri.fromFile(file);
  
              Glide.with(this)
                      .load(imageUri)
                      .onlyRetrieveFromCache(true)
                      .into(imageView);
  
              System.out.println("value : " + returnValue.get(i));
              //LoadImageFromWebOperations(returnValue.get(i));
          }
  </code></pre>
  
  <p>and i will always get error like this</p>
  
  <pre><code>W/Glide: Load failed for file:///storage/emulated/0/DCIM/Camera/IMG_20191116_110843.jpg with size [1080x1542]
      class com.bumptech.glide.load.engine.GlideException: Failed to load resource
  </code></pre>