title: Preload multiple images with Glide
body: <p>We are trying to <strong>preload images</strong> into cache memory to load them later (the images are located in the <strong>Asset folder</strong> of the application)</p>
  
  <p>What we tried:</p>
  
  <pre><code>Glide.with(this)
      .load(pictureUri)
      .diskCacheStrategy(DiskCacheStrategy.ALL);
  
  Glide.with(this)
      .load(picture_uri)
      .diskCacheStrategy(DiskCacheStrategy.ALL)
      .preload();
  </code></pre>
  
  <p>The issue: Images are cached only when we are trying to load/display them:
  They have to be loaded in memory before so that they appear faster.</p>
  
  <pre><code>Glide.with(this)
      .load(picture_uri)
      .into(imageView);
  </code></pre>
  
  <p>We also tried to use a GlideModule to increase the CacheMemory size:</p>
  
  <pre><code>public class GlideModule implements com.bumptech.glide.module.GlideModule {
      @Override
      public void applyOptions(Context context, GlideBuilder
          builder.setMemoryCache(new LruResourceCache(100000));
      }
  
      @Override
      public void registerComponents(Context context, Glide glide) {
      }
  }
  </code></pre>
  
  <p>In the manifest:</p>
  
  <pre><code> &lt;meta-data android:name=".GlideModule" android:value="GlideModule"/&gt;
  </code></pre>
  
  <p>Nothing is working so far. Any idea?</p>
  
  <hr>
  
  <p>We trying to use an invisible 1 dp imageView, but the result is the same:</p>
  
  <pre><code>for(Drawing drawing: getDrawingsForTab(tab)){
  
      Glide.with(this)
              .load(drawing.getImage().toUri())
              .dontAnimate()
              .diskCacheStrategy(DiskCacheStrategy.ALL)
              .into(mPreloadCacheIv);
  
      for(Picture picture : getPictures()){
  
          Glide.with(this)
                  .load(picture.getPicture().toUri())
                  .dontAnimate()
                  .diskCacheStrategy(DiskCacheStrategy.ALL)
                  .into(mPreloadCacheIv);
      }
  }
  </code></pre>