Code example for Executor

Methods: execute

0
        mStatus = Status.RUNNING;
 
        onPreExecute(); 
 
        mWorker.mParams = params;
        exec.execute(mFuture);
 
        return this;
    } 
 
    public static final void execute(Runnable runnable) {
        sDefaultExecutor.execute(runnable);
    } 
 
    protected final void publishProgress(Progress... values) {
        if (!isCancelled()) { 
            sHandler.obtainMessage(MESSAGE_POST_PROGRESS,
                    new LifoAsyncTaskResult<Progress>(this, values))
                    .sendToTarget();
        } 
    }