Hello. In the application, when you click on the button, select the images from the gallery. Each time you press a button, select one photo from the gallery, with a maximum you can select three images. Everything is okay until the third time when you select a large image (3000x2200), it will pour out. squeezing it this way:

bitmapArr[2] = Bitmap.createScaledBitmap(MediaStore.Images.Media.getBitmap(getContentResolver(), uri), 1300, 1000, false); 

What could be the problem?

  • Would you add a logcat to see with what error it crashes, there will be more chances that they can help you - Turalllb
  • How to work with Bitmap . - eugeneek

0