I want to show the Bitmap image in ImageView from sd card which is stored already. After run my application is crash and getting Ou
Bitmap image =((BitmapDrawable)imageView1.getDrawable()).getBitmap();
ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();
image.compress(Bitmap.CompressFormat.JPEG,50/100,byteArrayOutputStream);
50/100 if one uses 100 then original resolution can stopped the Apps for out of memory.
if 50 or less than 100 this will be 50% or less than 100 resolution so this will prevent from out of memory problem