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
Resize your image before setup to ImageView like this:
Bitmap.createScaledBitmap(_yourImageBitmap, _size, _size, false);
where size is actual size of ImageView. You can reach size by measuring:
imageView.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
and use next size imageView.getMeasuredWidth()
and imageView.getMeasuredHeight()
for scaling
.