How to increase heap size of an android application?

后端 未结 7 1670
天涯浪人
天涯浪人 2020-11-22 06:41

I am writing an Android application which uses several 3D models. Such a model with textures can take up a lot of memory. I found out the manufacturer sets a limit on the he

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 07:16

    From what I remember you could use VMRuntime class in early Android versions but now you just can't anymore.

    I don't think letting the developer choose the heap size in a mobile environment can be considered so safe though. I think it's easier that you can find a way to modify the heap size in a specific device (not on the programming side) that by trying to modify it from the application itself.

提交回复
热议问题