@Override public void onPause() { super.onPause(); adView.pause(); uiHelper.onPause(); imageFetcher.setPauseWork(false); imageFetcher.setExitTasksEarly(true); imageFetcher.flushCache(); }
@Override public void onDestroy() { super.onDestroy(); uiHelper.onDestroy(); adView.destroy(); imageFetcher.closeCache(); }
@Override public void onResume() { super.onResume(); adView.resume(); uiHelper.onResume(); imageFetcher.setExitTasksEarly(false); }
public void setupBitmapHandler() { imageFetcher = new ImageFetcher(this, (int) SCREEN_WIDTH, (int) SCREEN_HEIGHT); imageFetcher.addImageCache(this, IMAGE_CACHE_DIR); }