android.os
Class AsyncTask<Params,Progress,Result>
java.lang.Object
android.os.AsyncTask<Params,Progress,Result>
public abstract class AsyncTask<Params,Progress,Result>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THREAD_POOL_EXECUTOR
public static final Executor THREAD_POOL_EXECUTOR
SERIAL_EXECUTOR
public static final Executor SERIAL_EXECUTOR
AsyncTask
public AsyncTask()
getStatus
public final AsyncTask.Status getStatus()
doInBackground
protected abstract Result doInBackground(Params... params)
onPreExecute
protected void onPreExecute()
onPostExecute
protected void onPostExecute(Result result)
onProgressUpdate
protected void onProgressUpdate(Progress... values)
onCancelled
protected void onCancelled(Result result)
onCancelled
protected void onCancelled()
isCancelled
public final boolean isCancelled()
cancel
public final boolean cancel(boolean mayInterruptIfRunning)
get
public final Result get()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
get
public final Result get(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
- Throws:
InterruptedException
ExecutionException
TimeoutException
execute
public final AsyncTask<Params,Progress,Result> execute(Params... params)
executeOnExecutor
public final AsyncTask<Params,Progress,Result> executeOnExecutor(Executor exec,
Params... params)
execute
public static void execute(Runnable runnable)
publishProgress
protected final void publishProgress(Progress... values)
Copyright © 2008-2012. All Rights Reserved.