Code example for Executor

Methods: execute

0
        mStatus = Status.RUNNING;
 
        onPreExecute(); 
 
        mWorker.mParams = params;
        exec.execute(mFuture);
 
        return this;
    } 
 
    /** 
     * Convenience version of {@link #execute(Object...)} for use with 
     * a simple Runnable object. See {@link #execute(Object[])} for more 
     * information on the order of execution. 
     * 
     * @see #execute(Object[]) 
     * @see #executeOnExecutor(java.util.concurrent.Executor, Object[]) 
     */ 
    public static void execute(Runnable runnable) {
        sDefaultExecutor.execute(runnable);
    }