如何增加内存使用编程? [英] How to increase the RAM Memory usage programatically?

查看:120
本文介绍了如何增加内存使用编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个场景,我需要增加手机的RAM使用编程方式。

I have a Scenario in that I need to increase the RAM usage of the phone programmatically.

我不知道是否有可能。如果是的话,请帮助我在此。

I don't know whether it is possible. If so please help me on this.

推荐答案

我们可以通过增加的Andr​​oid 本机端RAM的使用。我们可以使一个单应用使用比RAM 300MB的多。由于在内存溢出异常仅适用于Java端(SDK)而不是C面(NDK)。但在Android的内存管理,如果系统的内存(作为一个整体)下降一个阈值它将自动杀应用程序,它使用更多的内存来重新获得内存..

We can increase Ram usage through Native Side of Android.. We can make an Single Application to use more than 300Mb of Ram. Since the OUT OF MEMORY exception is only for the Java Side (SDK) but not for the C side(NDK).. But in Android Memory management, if the system memory (as a whole) goes down a threshold value it will automatically kill application which uses more memory to re-gain memory..

这篇关于如何增加内存使用编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆