Code example for CancellationException

0
      Log.e(TAG, "Unable to save ", e);
      mTask = task;
      mException = e;
      mErrorText = text;
      cancel(false);
      throw new CancellationException(text);
   } 
    
   @Override 
   protected void onPreExecute() 
   { 
      if(mProgressListener!= null)
      { 
         mProgressListener.started();
      } 
   } 
 
   @Override 
   protected void onProgressUpdate(Integer... progress)
   { 
      if(mProgressListener!= null)