Android App crashing on Samsung Galaxy S3 (out of memory error)

前端 未结 4 2029
借酒劲吻你
借酒劲吻你 2021-02-05 13:02

I have an Android app that takes some pictures, re-sizes them and sends them over to the back-end server. This app works perfectly fine on all other phones (Gingerbread and Ice

4条回答
  •  粉色の甜心
    2021-02-05 13:59

    I sort of solved the issue myself. The app running out of memory didn't have to do anything with the above code. I added the MAT and I saw that the bitmap objects were being kept alive from previous views. So I removed the graphics from the view and it solved the memory issue.

提交回复
热议问题