BItmap:out of memory error. how to get the original image size after compressing it in android
<p>I have drawn an image manually on bitmap. But it has shown out of memory error. 
I, then reduced the size of the image which shows me the compressed form of the image.
I need the original size of the image to be displayed which is then showing out of memory error. Kindly, help me out in resolving the issue. 
I am enclosing the part of the code too.</p>

<p>ImageView iv1 = new ImageView(mcontext);</p>

<p>BitmapFactory.Options options = new BitmapFactory.Options();<br>
options.inSampleSize = 2;</p>

<p>BitmapFactory.decodeFile(pageViewManager.getPenToolPath() + pageViewManager.getCurrentPageIndex() + ".jpg");</p>

<p>bmp = BitmapFactory.decodeFile(pageViewManager.getPenToolPath() + pageViewManager.getCurrentPageIndex() + ".jpg", options);</p>

<p>iv1.setImageBitmap(bmp);</p>
