Android Bitmap OutOfMemoryError [duplicate]
问题 This question already has answers here : Android: BitmapFactory.decodeStream() out of memory with a 400KB file with 2MB free heap (7 answers) Closed 6 years ago . I'm having an OutOfMemoryError in my VSD220 (It's a 22" Android based All in one) for (ImageView img : listImages) { System.gc(); Bitmap myBitmap = BitmapFactory.decodeFile(path); img.setImageBitmap(myBitmap); img.setOnClickListener(this); } I really don't know what to do, because this image is below the maximum resolution. The