예제 #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mContext = this;
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    isAvtive = true;

    fmm = getSupportFragmentManager();
    mThreadPoolManager = ThreadPoolManager.getInstance();
  }
예제 #2
0
 protected void executeTask(Runnable run) {
   mThreadPoolManager.executeTask(run);
 }
예제 #3
0
 /**
  * 子线程执行一个任务
  *
  * @param task
  */
 protected void executeTask(Task task) {
   this.lastTask = task;
   mThreadPoolManager.executeTask(task);
 }