private LruCache<String, Bitmap> mMemoryCache;
// 이미지 캐쉬 하기
public void addBitmapToMemoryCache( String key, Bitmap bitmap){
if( getBitmapFromMemCache( key) == null){
mMemoryCache.put( key, bitmap);
}
}
// 캐쉬된 이미지 가져오기
public Bitmap getBitmapFromMemCache( String key){
try{
return mMemoryCache.get( key);
}catch(Exception e){
return null;
}
}
이렇게 했는데요 그림이 한번에 약 2천개정도를 캐쉬에 저장시킬수 잇나요?
죽지는 않을끼요?