title: Android glide error after activity was destroyed and restarted
body: <p>I get the following error when trying to load an image from assets into ImageView after app was closed and restarted:</p>
  
  <pre><code>D/skia: --- SkImageDecoder::Factory returned null
  </code></pre>
  
  <p>The scenario in which this issue appears:</p>
  
  <p>Android 5.0.1 (also tried on 5.1.1 - same issue)</p>
  
  <ol>
  <li>Start app</li>
  <li>Load animated image from assets into ImageView (image is loaded fine)</li>
  <li>Make sure activity is destroyed</li>
  <li>Restart activity</li>
  <li>Try to load same image - get the above-mentioned errors</li>
  </ol>
  
  <p>However, if I don't load image in step 2, but just close and restart app, and load image in step 5, there is no error - image is loaded fine.</p>
  
  <p>Here is my code for loading image:</p>
  
  <pre><code>Glide.with(applicationContext)
                  .using(new AssetUriLoader(applicationContext))
                  .load(Uri.parse(assetPath))
                  .diskCacheStrategy(DiskCacheStrategy.ALL)
                  .into(imageView);
  </code></pre>
  
  <p>The AssetUriLoader is a custom loader suggested by vpratfr in the following ticket:</p>
  
  <p><a href="https://github.com/bumptech/glide/issues/155" rel="nofollow">Loading images from assets</a></p>
  
  <p>The ImageView is created programmatically:</p>
  
  <pre><code>RelativeLayout.LayoutParams params = new        RelativeLayout.LayoutParams(mImageViewWidth, mImageViewHeigh);
      ImageView imageView = new ImageView(getActivity());
      params.leftMargin = 100;
      params.topMargin = 100;
      rl.addView(imageView, params);
  </code></pre>
  
  <p>If someone had this error after app is restarted, and found a solution, help would be much appreciated.</p>