android增长堆大小 [英] android grow heap size

查看:90
本文介绍了android增长堆大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些页面,其中我只是在imageview xml中显示图像。

问题是在某些手机我的应用程序挂起并得到以下错误:

android增长堆大小

getBufferLocked(0,00000033)失败(内存不足)

i have pages in which i simply display images in imageview xml.
problem is that in some mobile my app hangs and get below error :
android grow heap size
getBufferLocked(0, 00000033) failed (Out of memory)

推荐答案

一次内存中不能有太多图像。如果图像分辨率较高或使用某种交换机制,请尝试缩小图像尺寸。
You can't have too many images in memory at once. Try to down-size images if they are of higher resolution or use some kind of a swapping mechanism.


这篇关于android增长堆大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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