文章列表
我们都知道Android的Dalvik VM为一个应用提供了大约16MB的内存,一般我们处理超过8MB的图片将会出现OutOfMemoryError异常(内存溢出异常),报如下错误:
20155392-byte external allocation too large for this process.
VM won't let us allocate 20155392 bytes
Java.lang.OutOfMemoryError : bitmap size exceeds VM budget
Java代码 FileInputStream in; in = new ...