Bitmap - Out of memory exception

前端 未结 5 1970
抹茶落季
抹茶落季 2021-01-25 04:46

When I try to get image from camera or gallery, I get error. Here is a part of logcat:

06-27 05:51:47.297: E/dalvikvm-heap(438): Out of memory on a 35295376-byte         


        
5条回答
  •  自闭症患者
    2021-01-25 05:22

    If bitmap sizes are very big or inefficently handled then This problems occurs. To decode bitmap efficiently you can check these tips in android developers site.

    Displaying Bitmaps Efficiently

提交回复
热议问题