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 2025-02-10 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 2025-02-10 UTC."],[],[],null,["# AsyncTask.Status\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nStatus\n======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/os/AsyncTask.Status \"View this page in Java\") \n\n```\nclass Status\n```\n\n|---|---|----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.os.AsyncTask.Status](#)\\\u003e ||\n| | ↳ | [android.os.AsyncTask.Status](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [AsyncTask.Status.FINISHED](#ENUM_VALUE:FINISHED), [AsyncTask.Status.PENDING](#ENUM_VALUE:PENDING), [AsyncTask.Status.RUNNING](#ENUM_VALUE:RUNNING) |---------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| | [AsyncTask.Status.FINISHED](#ENUM_VALUE:FINISHED) | Indicates that [AsyncTask.onPostExecute](/reference/kotlin/android/os/AsyncTask#onPostExecute(android.os.AsyncTask.Result)) has finished. | | [AsyncTask.Status.PENDING](#ENUM_VALUE:PENDING) | Indicates that the task has not been executed yet. | | [AsyncTask.Status.RUNNING](#ENUM_VALUE:RUNNING) | Indicates that the task is running. | |\n\n*** ** * ** ***\n\n| **This enum was deprecated in API level 30.**\n|\n| Deprecated in Java.\n\nIndicates the current status of the task. Each status will be set only once during the lifetime of a task.\n\nSummary\n-------\n\n| Enum values ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [FINISHED](#ENUM_VALUE:FINISHED) Indicates that [AsyncTask.onPostExecute](/reference/kotlin/android/os/AsyncTask#onPostExecute(android.os.AsyncTask.Result)) has finished. |\n| [PENDING](#ENUM_VALUE:PENDING) Indicates that the task has not been executed yet. |\n| [RUNNING](#ENUM_VALUE:RUNNING) Indicates that the task is running. |\n\nEnum values\n-----------\n\n### FINISHED\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val FINISHED : AsyncTask.Status\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nIndicates that [AsyncTask.onPostExecute](/reference/kotlin/android/os/AsyncTask#onPostExecute(android.os.AsyncTask.Result)) has finished. \n\n### PENDING\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PENDING : AsyncTask.Status\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nIndicates that the task has not been executed yet. \n\n### RUNNING\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val RUNNING : AsyncTask.Status\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nIndicates that the task is running."]]