Example usage for Java android.os AsyncTask fields, constructors, methods, implement or subclass
The text is from its open source code.
Executor | THREAD_POOL_EXECUTOR An Executor that can be used to execute tasks in parallel. |
Executor | SERIAL_EXECUTOR An Executor that executes tasks one at a time in serial order. |
AsyncTask() Creates a new asynchronous task. |
boolean | cancel(boolean mayInterruptIfRunning) Attempts to cancel execution of this task. |
AsyncTask | execute(Params... params) Executes the task with the specified parameters. |
void | execute(Runnable runnable) Convenience version of #execute(Object) for use with a simple Runnable object. |
AsyncTask | executeOnExecutor(Executor exec, Params... params) Executes the task with the specified parameters. |
Result | get() Waits if necessary for the computation to complete, and then retrieves its result. |
Result | get(long timeout, TimeUnit unit) Waits if necessary for at most the given time for the computation to complete, and then retrieves its result. |
Status | getStatus() Returns the current status of this task. |
boolean | isCancelled() Returns true if this task was cancelled before it completed normally. |
String | toString() Returns a string representation of the object. |