android.os
Class AsyncTask<Params,Progress,Result>

java.lang.Object
  extended by android.os.AsyncTask<Params,Progress,Result>

public abstract class AsyncTask<Params,Progress,Result>
extends Object


Nested Class Summary
static class AsyncTask.Status
           
 
Field Summary
static Executor SERIAL_EXECUTOR
           
static Executor THREAD_POOL_EXECUTOR
           
 
Constructor Summary
AsyncTask()
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
protected abstract  Result doInBackground(Params... params)
           
 AsyncTask<Params,Progress,Result> execute(Params... params)
           
static void execute(Runnable runnable)
           
 AsyncTask<Params,Progress,Result> executeOnExecutor(Executor exec, Params... params)
           
 Result get()
           
 Result get(long timeout, TimeUnit unit)
           
 AsyncTask.Status getStatus()
           
 boolean isCancelled()
           
protected  void onCancelled()
           
protected  void onCancelled(Result result)
           
protected  void onPostExecute(Result result)
           
protected  void onPreExecute()
           
protected  void onProgressUpdate(Progress... values)
           
protected  void publishProgress(Progress... values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THREAD_POOL_EXECUTOR

public static final Executor THREAD_POOL_EXECUTOR

SERIAL_EXECUTOR

public static final Executor SERIAL_EXECUTOR
Constructor Detail

AsyncTask

public AsyncTask()
Method Detail

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.