如何在Android应用程序的使用> = 256MB内存?应用程序、内存、如何在、Android

2023-09-04 07:57:42 作者:Glu TtoNy 沉沦

据我所知,每个Android手机限制所有的应用程序,以约16,24或32Mb的最大内存使用量。我刚刚看到有人在讨论应用程序地牢守护者这显然似乎使用256 MB的RAM。

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 which apparently seems to make use of 256 Mb of RAM.

应用描述:最低要求:512 MB RAM(256免费在运行时) http://www.appbrain.com/app /dungeon-defenders%3A-first-wave/com.trendy.ddapp

App description: "Minimum Requirements: 512 MB RAM (256 free at runtime)" http://www.appbrain.com/app/dungeon-defenders%3A-first-wave/com.trendy.ddapp

这是如何得到这个游戏上的Droid(其中自定义ROM是需要获得自由运行游戏,256MB内存)运行指南: 的http://www.forums.trendyent.com/showthread.php?447-How-to-play-Dungeon-Defenders-on-your- 摩托罗拉的Droid-Milestone-(需要根)

A guide on how to get this game to run on a Droid (where a custom ROM is require to get 256Mb of RAM free to run the game): http://www.forums.trendyent.com/showthread.php?447-How-to-play-Dungeon-Defenders-on-your- Motorola-Droid-Milestone-(requires-root)

这怎么可能呢?有谁知道是怎么回事?有机会获得那么多内存会使某些项目我的工作更容易编写,所以我非常有兴趣知道这个游戏做的。

How is this possible? Does anyone know what is going on here? Having access to that much RAM would make certain projects I'm working on much easier to write so I'm very interested to know what this game is doing.

推荐答案

在柏林,德国droidcon,我听说你可以在不增加应用程序可以在Dalvik的一侧使用的内存量。您可以使用所有可用的内存在本机端,所以我想在指定的应用程序已经实现了沉重记忆的东西在原生C语言中使用NDK。那是唯一可行的解​​决办法,我知道...

On the droidcon in Berlin, Germany, I heard that you can't increase the amount of RAM an application can use on the dalvik side. You can use all available memory on the native side so I guess the named application have implemented heavy memory stuff native in C using the NDK. Thats the only possible solution I know...

更新这不是会议,这是一个谷歌实验室参观我用的Reto Meier和同事。大学

Update It wasn't the conference, it was a Google Lab visit at my university with Reto Meier and colleagues.