title: Get Bitmap from universal image loader
body: <p>I'm trying to get a bitmap resource using the <a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="nofollow">Universal Image Loader</a> Library. I have overridden the onLoadComplete() method like this:</p>
  
  <pre><code>loader.displayImage(thumbnail.get(position), hold.ivThumbnailReflection, options, new ImageLoadingListener() {
  
          @Override
          public void onLoadingStarted(String arg0, View arg1) {
              // TODO Auto-generated method stub
  
          }
  
          @Override
          public void onLoadingFailed(String arg0, View arg1, FailReason arg2) {
              // TODO Auto-generated method stub
  
          }
  
          @Override
          public void onLoadingComplete(String urlLink, View arg1, Bitmap loadedImage) {
  
              Log.i("loading complete","loading complete "+loadedImage);
              hold.ivThumbnail.setImageBitmap(loadedImage);
  
  
          }
  
          @Override
          public void onLoadingCancelled(String arg0, View arg1) {
              // TODO Auto-generated method stub
  
          }
      });
  </code></pre>
  
  <p>The image is set in the <code>ivThumbnailReflection</code> view but there is no image on the <code>ivThumbnail</code> view. When I print the object for loadedImage I get a string in the form- android.graphics.Bitmap@4170f1d0.</p>
  
  <p>What am I doing wrong? Pls help.</p>
  
  <p><strong>Edit:</strong> Initialize options for UIL:</p>
  
  <pre><code>options = new DisplayImageOptions.Builder()
  .cacheOnDisc(true)
  .bitmapConfig(Bitmap.Config.RGB_565)
  .imageScaleType(ImageScaleType.IN_SAMPLE_INT)
  .build();
  </code></pre>