Exemplo n.º 1
0
 /** Inform the task finish. */
 protected void postFinish() {
   UploadPoster finish = new UploadPoster(what, mUploadListener);
   finish.finish();
   PosterHandler.getInstance().post(finish);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 /** Inform the task cancel. */
 protected void postCancel() {
   UploadPoster cancelPoster = new UploadPoster(what, mUploadListener);
   cancelPoster.cancel();
   PosterHandler.getInstance().post(cancelPoster);
 }
Exemplo n.º 5
0
 /** Inform the task start. */
 protected void postStart() {
   UploadPoster start = new UploadPoster(what, mUploadListener);
   start.start();
   PosterHandler.getInstance().post(start);
 }