Compressing Bitmaps in Memmory
<p>I am creating an Activity that reads all images from the device. I use the following code</p>

<pre><code>ContentResolver crThumb = context.getContentResolver();
            BitmapFactory.Options options = new BitmapFactory.Options();
            b = MediaStore.Images.Thumbnails.getThumbnail(
                    crThumb,
                    Long.parseLong(url),
                    MediaStore.Images.Thumbnails.MINI_KIND, options);
            return b;
</code></pre>

<p>I display these bitmaps, in a GridView, however after sometime my activity crashes as there is not enough memory. How can i compress the bitmap in memory, before reading it ?</p>

<p>Kind Regards</p>
