Exemple #1
0
 /** Inform the task finish. */
 protected void postFinish() {
   UploadPoster finish = new UploadPoster(what, mUploadListener);
   finish.finish();
   PosterHandler.getInstance().post(finish);
 }
Exemple #2
0
 /**
  * Error notification tasks.
  *
  * @param e exception.
  */
 protected void postError(Exception e) {
   UploadPoster error = new UploadPoster(what, mUploadListener);
   error.error(e);
   PosterHandler.getInstance().post(error);
 }
Exemple #3
0
 /**
  * The update task schedule.
  *
  * @param progress progress.
  */
 protected void postProgress(int progress) {
   UploadPoster progressPoster = new UploadPoster(what, mUploadListener);
   progressPoster.progress(progress);
   PosterHandler.getInstance().post(progressPoster);
 }
Exemple #4
0
 /** Inform the task cancel. */
 protected void postCancel() {
   UploadPoster cancelPoster = new UploadPoster(what, mUploadListener);
   cancelPoster.cancel();
   PosterHandler.getInstance().post(cancelPoster);
 }
Exemple #5
0
 /** Inform the task start. */
 protected void postStart() {
   UploadPoster start = new UploadPoster(what, mUploadListener);
   start.start();
   PosterHandler.getInstance().post(start);
 }