Heap Memory Size Increases While Adding Bitmaps in Arraylists in Android?
<p>I am making a painting application in which I have to add bitmaps of images in an Arraylist when drawing many lines. Unfortunately, I got an out of memory exception. I am unable to fix the issue, though I have increased the size of heap.</p>

<p>I am adding current bitmaps in an Arraylist like this:</p>

<pre><code>linesbitmap.add(Bitmap.createBitmap(mBitmap));
</code></pre>
