/** Inform the task finish. */ protected void postFinish() { UploadPoster finish = new UploadPoster(what, mUploadListener); finish.finish(); PosterHandler.getInstance().post(finish); }
/** * Error notification tasks. * * @param e exception. */ protected void postError(Exception e) { UploadPoster error = new UploadPoster(what, mUploadListener); error.error(e); PosterHandler.getInstance().post(error); }
/** * 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); }
/** Inform the task cancel. */ protected void postCancel() { UploadPoster cancelPoster = new UploadPoster(what, mUploadListener); cancelPoster.cancel(); PosterHandler.getInstance().post(cancelPoster); }
/** Inform the task start. */ protected void postStart() { UploadPoster start = new UploadPoster(what, mUploadListener); start.start(); PosterHandler.getInstance().post(start); }