OutOfMemoryException when using large images

use this :

BitmapFactory.Options options=new BitmapFactory.Options();
options.inSampleSize = 8;
Bitmap preview_bitmap=BitmapFactory.decodeStream(is,null,options);

for more detail see this link

link

Browse More Popular Posts

Leave a Comment