[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/os/AsyncTask.Status [Back]  [Original]

AsyncTask.Status  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 3
Deprecated in API level 30

AsyncTask.Status


public static final enum AsyncTask.Status
extends Enum<AsyncTask.Status>

java.lang.Object
   ↳ java.lang.Enum<android.os.AsyncTask.Status>
     ↳ android.os.AsyncTask.Status


Indicates the current status of the task. Each status will be set only once during the lifetime of a task.

Summary

Enum values

AsyncTask.Status  FINISHED

Indicates that AsyncTask.onPostExecute has finished. 

AsyncTask.Status  PENDING

Indicates that the task has not been executed yet. 

AsyncTask.Status  RUNNING

Indicates that the task is running. 

Public methods

static AsyncTask.Status valueOf(String name)
static final Status[] values()

Inherited methods

Enum values

FINISHED

Added in API level 3
public static final AsyncTask.Status FINISHED

Indicates that AsyncTask.onPostExecute has finished.

PENDING

Added in API level 3
public static final AsyncTask.Status PENDING

Indicates that the task has not been executed yet.

RUNNING

Added in API level 3
public static final AsyncTask.Status RUNNING

Indicates that the task is running.

Public methods

valueOf

public static AsyncTask.Status valueOf (String name)

Parameters
name String

Returns
AsyncTask.Status

values

public static final Status[] values ()

Returns
Status[]

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page