2013年7月31日

Android中解决图像解码导致的OOM问题

摘要: Android中解决图像解码导致的OOM问题 原文链接:http://blog.csdn.net/zjl5211314/article/details/7042017 阅读全文

posted @ 2013-07-31 12:14 勤修 阅读(463) 评论(0) 推荐(0) 编辑

android 图片占用内存与什么有关

摘要: android 图片占用内存与什么有关 原文链接:http://blog.csdn.net/zjl5211314/article/details/7041813 在开发手机应用的时候,内存是有限的,那使用的时候,就要合理的运用和释放。 那么最占用内存的,估计也是就图片了,有时候,需要在加载一些大量的图片。但是,往往回报内存溢出的错误。看看图片的大小呢,也 不大,也就20KB左右,为什... 阅读全文

posted @ 2013-07-31 12:01 勤修 阅读(3132) 评论(0) 推荐(0) 编辑

int android.graphics.Bitmap.getRowBytes()

摘要: int android.graphics.Bitmap.getRowBytes() Return the number of bytes between rows in the bitmap's pixels. Note that this refers to the pixels as stored natively by the bitmap. If you call getPixels... 阅读全文

posted @ 2013-07-31 11:52 勤修 阅读(1896) 评论(0) 推荐(0) 编辑

void android.graphics.Bitmap.recycle()

摘要: void android.graphics.Bitmap.recycle() Free up the memory associated with this bitmap's pixels, and mark the bitmap as "dead", meaning it will throw an exception if getPixels() or setPixels() is ... 阅读全文

posted @ 2013-07-31 11:45 勤修 阅读(972) 评论(0) 推荐(0) 编辑

void java.lang.System.gc()

摘要: void java.lang.System.gc() Runs the garbage collector. Calling the gc method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they ... 阅读全文

posted @ 2013-07-31 11:43 勤修 阅读(375) 评论(0) 推荐(0) 编辑

java.util.WeakHashMap

摘要: http://mikewang.blog.51cto.com/3826268/880775 http://mzlly999.iteye.com/blog/1126049 java.util.WeakHashMap A hashtable-based Map implementation with weak keys. An entry in a WeakHashMap will autom... 阅读全文

posted @ 2013-07-31 11:34 勤修 阅读(416) 评论(0) 推荐(0) 编辑

导航