Example #1
0
 @Override
 protected void onCancelled() {
   // TODO Auto-generated method stub
   super.onCancelled();
   System.out.println("MyTask is canceled::::::::::::::::::::::::::::");
   myTask.cancel(true);
 }
Example #2
0
 @Override
 protected void onCancelled() {
   super.onCancelled();
   if (pd != null) {
     pd.dismiss();
   }
 }
Example #3
0
 @Override
 protected void onCancelled() {
   super.onCancelled();
   synchronized (mPauseWorkLock) {
     mPauseWorkLock.notifyAll();
   }
 }
 @Override
 protected void onCancelled() {
   super.onCancelled();
   if (mConnection != null) {
     mConnection.disconnect();
   }
 }
 @Override
 protected void onCancelled() {
   if (DEBUG) {
     Log.v(TAG, "Updating Cancelled");
   }
   super.onCancelled();
 }
 @Override
 protected void onCancelled(BitmapDrawable value) {
   super.onCancelled(value);
   synchronized (mPauseWorkLock) {
     mPauseWorkLock.notifyAll();
   }
 }
 @Override
 protected void onCancelled() {
   super.onCancelled();
   MyApplication.getInstance().showMessage(R.string.msg_op_canceled);
   setResult(Activity.RESULT_CANCELED);
   finish();
 }
 @Override
 protected void onCancelled() {
   super.onCancelled();
   if (progressDialog != null) {
     progressDialog.dismiss();
   }
 }
 @Override
 protected void onCancelled() {
   super.onCancelled();
   if (mListener != null) {
     mListener.onCanceledNoticeApi();
   }
 }
 @Override
 protected void onCancelled(String result) {
   synchronized (commit_lock) {
     loading = false;
   }
   ActivityUtil.getInstance().dismiss();
   super.onCancelled();
 }
Example #11
0
    @Override
    protected void onCancelled() {
        super.onCancelled();

        if (externalDataManager != null) {
            externalDataManager.close();
        }
    }
 @Override
 protected void onCancelled(String s) {
   super.onCancelled(s);
   progressDialog.hide();
   AppUtils.showAlert(
       getActivity(),
       getActivity().getResources().getString(R.string.error_title),
       getActivity().getResources().getString(R.string.error_message));
 }
  @Override
  protected void onCancelled() {
    super.onCancelled();
    onCancelledTask();

    if (null != mCallback) {
      mCallback.onCancelCallback(mType, mParam);
    }
  }
Example #14
0
 @Override
 protected void onCancelled() {
   super.onCancelled();
   if (dialog != null) {
     if (dialog.isShowing()) {
       dialog.cancel();
     }
   }
 }
 @Override
 protected void onCancelled(Boolean aBoolean) {
   super.onCancelled(aBoolean);
   // mPostUploadNotifier and mPost can be null if onCancelled is called before doInBackground
   if (mPostUploadNotifier != null && mPost != null) {
     mPostUploadNotifier.updateNotificationError(
         mErrorMessage, mIsMediaError, mPost.isPage(), mErrorUnavailableVideoPress);
   }
 }
Example #16
0
 @SuppressLint({"NewApi"})
 protected void m3970b(StickerImageHolder stickerImageHolder) {
   if (VERSION.SDK_INT > 11) {
     super.onCancelled(stickerImageHolder);
   }
   synchronized (this.f3120a.f3130e) {
     this.f3120a.f3130e.notifyAll();
   }
 }
    @Override
    protected void onCancelled() {
      super.onCancelled();

      // Call onFailure() method of the listener.
      fireOnFailure(Result.CANCELLATION);

      // Set null to TwitterOAuthView.this.twitterOAuthTask if appropriate.
      clearTaskReference();
    }
Example #18
0
 @Override
 protected void onCancelled() {
   context.debug("onCancelled()");
   // try {
   // if (ftp != null && ftp.getClient() != null
   // && ftp.getClient().isConnected())
   // ftp.getClient().abort();
   // } catch (IOException e) {
   // e.printStackTrace();
   // }
   super.onCancelled();
 }
Example #19
0
 @Override
 protected void onCancelled(RectF result) {
   // TODO Auto-generated method stub
   super.onCancelled(result);
   progress = false;
   try {
     progressUpdateThread.join();
   } catch (InterruptedException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
 @Override
 protected void onCancelled() {
   super.onCancelled();
   mIsUpdatingComments = false;
   mUpdateCommentsTask = null;
   if (mRetryOnCancelled) {
     mRetryOnCancelled = false;
     updateComments(false);
   } else {
     mPullToRefreshHelper.setRefreshing(false);
   }
 }
  @Override
  protected void onCancelled() {

    try {
      channel.close();
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    cancel(true);
    super.onCancelled();
  }
 @Override
 protected void onCancelled() {
   if (mBound) {
     mParent.unbindService(mConnection);
     mBound = false;
   }
   mParent.stopService(mServiceIntent);
   if (mProgressDialog != null) {
     mProgressDialog.dismiss();
   }
   mParent.updateLayout();
   super.onCancelled();
 }
Example #23
0
    @Override
    protected void onCancelled() {
      super.onCancelled();
      // 任务被取消
      Log.v(LOG_TAG + "WorkModelAsyncTask.onCancelled", "work is cancelled");
      Log.v(
          LOG_TAG + "WorkModelAsyncTask.onCancelled",
          "onCancelWork(boolean , String , " + "Object) is invoked");
      onCancelWork(state, getMessage(), getResult());

      if (workCancelledListener != null) {
        Log.v(
            LOG_TAG + "WorkModelAsyncTask.onCancelled",
            "workCancelledListener" + ".doEndWork(boolean , String , " + "Object) is invoked");
        workCancelledListener.doEndWork(state, getMessage(), getResult());
      }
    }
 /* (non-Javadoc)
  * @see android.os.AsyncTask#onCancelled()
  */
 @Override
 protected void onCancelled() {
   Log.i(LOG_PREFIX, "Download task stopped");
   super.onCancelled();
 }
 @Override
 protected void onCancelled() {
   // TODO Auto-generated method stub
   super.onCancelled();
 }
 @Override
 protected void onCancelled() {
   super.onCancelled();
 }
 // 如果是因为调用了 asyncTask.cancel() 让task 中断的话,虽然doInBackground 返回,但是onPostExecute 是不会被调用的
 // 而是调用 onCancelled
 @Override
 protected void onCancelled() {
   super.onCancelled();
   Log.d(ADS_DOWNLOAD, "onCancelled");
 }
  @Override
  public void onCancelled() {

    super.onCancelled();
    interrupt = true;
  }
 @Override
 protected void onCancelled() {
   super.onCancelled();
   AEProgressDialog.dismissLoadingDialog();
 }
 @Override
 protected void onCancelled(String result) {
   super.onCancelled(result);
 }