Esempio n. 1
0
  @Override
  public void onPause() {
    super.onPause();
    adView.pause();
    uiHelper.onPause();

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