Пример #1
0
 public void onDestroy() {
   super.onDestroy();
   mExiting = true;
   mThreadPool.resume();
   mThreadPool.shutdown();
 }
Пример #2
0
 public void onPause() {
   super.onPause();
   mThreadPool.pause();
 }
Пример #3
0
 protected void executeImageTask(String url, String appCode) {
   ImageDownloadTask task = new ImageDownloadTask(url, appCode, mHandler);
   ImageLib.inst().setDownloadFlag(url);
   mThreadPool.execute(task);
 }
Пример #4
0
 public void onResume() {
   super.onResume();
   mThreadPool.resume();
 }
Пример #5
0
 protected void executeTask(Runnable task) {
   mThreadPool.execute(task);
 }