摘要: 什么是软引用:http://en.wikipedia.org/wiki/Soft_reference;使用软引用:我构造了简单的HashMap来存储SoftReference的对象。 private HashMap<Integer, SoftReference<Bitmap>> mThumbnailCache = null;//新建软引用缓存。//创建一个软应用 private SoftReference<Bitmap> createSoftReference(int albumId) { if (null == mCacheManager) return 阅读全文
posted @ 2011-11-01 13:47 wsjisji 阅读(1859) 评论(1) 推荐(0) 编辑