Caused by: java.lang.OutOfMemoryError: Failed to allocate a 35624972 byte allocation with 4194304 free bytes and 28MB until OOM

前端 未结 2 1841
醉酒成梦
醉酒成梦 2021-01-16 07:41

Here is my code:

BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeResource(getResource         


        
2条回答
  •  花落未央
    2021-01-16 08:16

    Thanks to @CommonsWare and @petey,Loading Large Bitmaps Efficiently works for me.

提交回复
热议问题