title: How can I resize a picture before displaying it in a view with Android Universal Image Loader?
body: <p>I successfully applied the Universal Image Loader library (1.8.3 version) to my app, and I'm trying to resize the image before displaying it in the gridview item (because sometime image is too big to cache it in memory.)</p>
  
  <p>Here is what I am trying:</p>
  
  <pre><code>...
  BitmapFactory.Options resizeOptions = new BitmapFactory.Options();
  resizeOptions.inSampleSize = 3; // decrease size 3 times
  resizeOptions.inScaled = true;
  
  options = new DisplayImageOptions.Builder()
  .showStubImage(R.drawable.blank)
  .showImageForEmptyUri(R.drawable.no_image)
  .cacheInMemory()
  .cacheOnDisc()
  .decodingOptions(resizeOptions)
  .build();
  ...
  </code></pre>
  
  <p>This code doesn't make image 3 times smaller for some reason.</p>
  
  <p>Does someone have a better way to resize an image by exactly the specified density?</p>