Getting Out of memory on a 3001616-byte allocation error for bitmap decoding
<p>I'm actually getting this error on method Load image inside it i'm doing<br>
i set options size to </p>

<p>bmOptions.inSampleSize = 1;</p>

<p>the method in which the error points line decodeStream()..</p>

<pre><code>private Bitmap LoadImage(String URL, BitmapFactory.Options options) {
        Bitmap bitmap = null;
        InputStream in = null;
        try {
            in = OpenHttpConnection(URL);
            bitmap = BitmapFactory.decodeStream(in, null, options);
            in.close();

        } catch (IOException e1) {

            return null;
        }
        return bitmap;

    }
</code></pre>

<p>E/dalvikvm-heap(8627): Out of memory on a 3001616-byte allocation.
at decodeStream()
at loadImage()</p>
