How can an Android app use >=256Mb of RAM?

前端 未结 4 1404
说谎
说谎 2021-01-03 08:32

As far as I\'m aware, each Android phones limits all apps to a maximum memory usage of about 16, 24 or 32Mb. I\'ve just seen people discussing the app Dungeon Defenders whic

4条回答
  •  不知归路
    2021-01-03 09:11

    I'm using NDK for my app. and for my testing device when i take more than the 16mb limit (HTC magic, android 2.2) the app crashes and the system throws exceptions for invalid addresses access. So no, you can´t use all the memory you want neither from native side or from the java-managed side.

    I've read about using different .so libraries and load them when running your app, but i dont know how it works or if its a viable workaround. Any suggestions?

提交回复
热议问题