how to avoid the error OOM when displaying bitmaps in recyclerView
问题 I am trying to show bitmap images in a 3 column gridViewLayout in recyclerView. but I receive OOM (Out of Memory) exception. Note that images are picked from gallery how can I solve this problem ?? This is my onBindViewHolder : @Override public void onBindViewHolder(@NonNull final ViewHolder holder, final int position) { final byte[] data = arrayList.get(position).getAsByteArray("byteArray"); Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); Glide.with(activity) .load