摘要: 1 Strong Referenceeg: Emp e=new Emp(); 2.soft Reference eg: softReference ref=new SoftReference(bitmap); HashMap<String,SoftReference<Bitmap>> cache=n 阅读全文
posted @ 2016-03-04 21:08 gentspy 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 内存缓存:存 HashMap<String,Bitmap>cache;Bitmap bitmap;cache.put(path,bitmap)取:cache.get(path) weakedHashMap<String,xx>map;while(true){map.put(xx,xx); 文件缓存: 阅读全文
posted @ 2016-03-04 20:50 gentspy 阅读(169) 评论(0) 推荐(0) 编辑