public void onDestroy() {
   super.onDestroy();
   mExiting = true;
   mThreadPool.resume();
   mThreadPool.shutdown();
 }
 public void onPause() {
   super.onPause();
   mThreadPool.pause();
 }
 protected void executeImageTask(String url, String appCode) {
   ImageDownloadTask task = new ImageDownloadTask(url, appCode, mHandler);
   ImageLib.inst().setDownloadFlag(url);
   mThreadPool.execute(task);
 }
 public void onResume() {
   super.onResume();
   mThreadPool.resume();
 }
 protected void executeTask(Runnable task) {
   mThreadPool.execute(task);
 }