Android 2.3的具有较低的虚拟机的预算比2.1和2.2?较低、虚拟机、预算、Android

2023-09-05 06:50:53 作者:奋斗的小青年

这似乎是Android 2.3的具有更小的虚拟机的预算超过210 AMD 2.2。我惊讶了新的操作系统是比较严格的,我希望的是,由于技术之一的发展应该有更大的内存分配的应用程序(VM预算)。

It seems like Android 2.3 has much smaller VM budget than 2.1 amd 2.2. I am suprised that the newer OS is more restrictive, I would expect that due to the development of technology one should have bigger memory allocation for an application (VM budget).

我不能保留在内存中的大位图图像,这是一个图形图像处理应用程序,我现在这样重要。但能正常工作在2.1和2.2。

Because of this I cannot hold in memory big bitmap images, which is important for a graphics image manipulation application I am doing now. But it works fine in 2.1 and 2.2.

如果我缩小我的形象与inScale容纳2.3然后我失去了我的输出质量。

If I scale down my image with inScale to accommodate 2.3 then I lose on quality of my output.

你有什么建议如何根据自己的经验2.3和previous版本之间处理这种差异?

Do you have any advice how to handle this difference between 2.3 and the previous versions based on your own experience?

推荐答案

安卓2.3的VM预算实际上是较高的(32 MB)不同的是,Android 2.3的现在加载所有的位图以32位(ARGB8888)默认情况下,而不是的16位。

Android 2.3's VM budget is actually higher (32 MB.) The difference is that Android 2.3 now loads all bitmaps in 32 bits (ARGB8888) by default instead of 16 bits.

请参阅 HTTP:// WWW。 curious-creature.org/2010/12/04/gingerbread-and-32-bits-windows/ 和的 http://www.curious-creature.org/2010/12/08/bitmap-quality-banding-and-dithering/ 以更多信息