mPurgeHandler.removeCallbacks(mPurgerRunnable);
mPurgeHandler.postDelayed(mPurgerRunnable, DELAY_BEFORE_PURGE);
}
@Override
public boolean getFile(String path, String targetPath) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean clearFile(String path) {
// TODO Auto-generated method stub
return false;
}
@Override
public void saveBitmap(String url, Bitmap bitmap) {
if (bitmap != null) {
synchronized (mHardBitmapCache) {
mHardBitmapCache.put(url, bitmap);
}
}
}
@Override
public int getCurrentCacheBitmapNumbers() {
int numbers = 0;
if (mHardBitmapCache != null) {
numbers = mHardBitmapCache.size();
}
if (mSoftBitmapCache != null) {
numbers = numbers mSoftBitmapCache.size();
}
return numbers;
}
@Override
public boolean clearCacheBitmaps() {
try {
mHardBitmapCache.clear();
mSoftBitmapCache.clear();
} catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
}
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-49624-3.html
铲除恐怖组织是各国的责任义务
我已经放弃了