Android memory leak?

后端 未结 4 1945

I think my android app is leaking memory. I\'m not absolutely sure that this is the problem though.

Every so often the app crashes when opening, and logcat shows

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 15:42

    A typical value of max application VM heap size is 24 MB. So, for instance, if your image is 10Mpx (3600 x 2400), then it would allocate 3600 x 2400 x 4 = 34'560'000 bytes which is an OutOfMemoryError case.

提交回复
热议问题