Dalvik的内存分配 - 如何更改默认的限制? [英] Dalvik Memory Allocation - How to change the default limits?

查看:156
本文介绍了Dalvik的内存分配 - 如何更改默认的限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在考虑制定处理申请 通过使用Android操作系统的手机的摄像头拍摄的图像。 在我做出决定出去,我做了一些研究, 发现有一些投诉关于存储器的极限 通过Dalvik虚拟机,这似乎限制应用程序分配 需要操纵的图像和处理。 这限制了我应该记住,如果我将不得不处理的 用相机拍摄的例子3张照片,在我的过程中,将 过滤器,转换和其他类型的数学运算的?

I am currently considering to develop an application for processing of images captured by the camera of mobile phones using the Android OS. Before I make the decision to go forth, I have done some research and found out there are some complaints regarding the limits of the memory allocated by the Dalvik VM, which seem to be limiting to applications that require manipulation and processing of images. Which limits should i have in mind if i would have to process for example 3 photos taken with the camera, in my process, applying filters, transforms and other types of mathematical operations?

我想知道是否有可能改变的默认值 由Dalvik虚拟机为每个应用程序分配内存(这个默认 是16 MB),以任何方式,采用了Android 1.6操作系统。有没有人看 到这一点,可以帮我吗?

I would like to know if it is possible to change the default value of memory allocated by the Dalvik VM for each application (this default is of 16 MB), in any way, using the Android 1.6 OS. Has anybody looked into this that can help me out please?

我也看到了Android 2.1兼容性定义文档中 (可在这里: <一href="http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/pt-PT//compatibility/android-2.1-cdd.pdf">http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/pt-PT//compatibility/android-2.1-cdd.pdf ) 有可能通过在Dalvik改变存储器分配 虚拟机从16 MB至24 MB或即使它是必要更大量,但 它没有提及任何地方如何可以做到这一点。

I have also read in the Android 2.1 compatibility definition document (available here: http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/pt-PT//compatibility/android-2.1-cdd.pdf ) that it is possible to change the allocation of memory by the Dalvik VM from 16 MB to 24 MB or even a bigger amount if it is necessary, but it is not mentioned anywhere how this can be done.

如果有人之前已经调查了这些问题,可以给我一些 帮助或提示,这将是极大的AP preciated。 谢谢。

If someone has looked into those issues before and could give me some help or hints, it would be greatly appreciated. Thank you.

推荐答案

在通常的设备,你不能改变堆限制你的应用程序。他们是很难codeD由OEM。如果您正在开发的一些装置,你可以完全控制,你可以修改的Dalvik启动脚本,让更多的堆空间。

On a usual device you cannot change the heap-limits of your application. They are hardcoded by the OEM. If you are developing for some device of which you have full control, you can modify Dalvik startup scripts to allow more heap space.

这篇关于Dalvik的内存分配 - 如何更改默认的限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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