java.lang.OutOfMemoryError: bitmap size exceeds VM budget - android - how many images?

后端 未结 4 2004
暗喜
暗喜 2020-12-18 08:55

I am developing an android app and as I read all around and learned for myself, I cant have a lot of images on the screen at the same time or I will get an exception.

<
4条回答
  •  有刺的猬
    2020-12-18 09:40

    The amount of memory varies from device to device and the amount you have to play with depends on what else the system is doing at the time. Your best bet is to not even come close to running the system out of memory if you can help it. What are you doing that you need that many images on the screen?

提交回复
热议问题