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

前端 未结 4 2030
借酒劲吻你
借酒劲吻你 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:42

    Wow. We have struggled with this Out of Memory issue on the S3 for weeks now. Finally, applied one of the techniques in this thread.

    In our app, we had drawable-hdpi have all the images for the app. On most phones, we had no issue . On the S3, the app would take 2x as much memory and then run into out of memory issue.

    I just created drawable-xhdpi folder with the same contents as drawable-hdpi folder and ran it on S3. Immediately noticed the memory footprint was 1/2 and no out of memory issues.

    This was a frustrating experience. Hopefully other people know to look for this thread and save hours of degugging.

    thanks

提交回复
热议问题