Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final enum

Thread.State

extends Enum <E extends  Enum <E>>
java.lang.Object
   ↳ java.lang.Enum <E extends  java.lang.Enum <E>>
     ↳ java.lang.Thread.State

Class Overview

A representation of a thread's state. A given thread may only be in one state at a time.

Summary

Enum Values
Thread.State   BLOCKED  The thread is blocked and waiting for a lock. 
Thread.State   NEW  The thread has been created, but has never been started. 
Thread.State   RUNNABLE  The thread may be run. 
Thread.State   TERMINATED  The thread has been terminated. 
Thread.State   TIMED_WAITING  The thread is waiting for a specified amount of time. 
Thread.State   WAITING  The thread is waiting. 
Public Methods
static Thread.State valueOf ( String name)
final static State[] values ()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Thread.State BLOCKED

Added in API level 1

The thread is blocked and waiting for a lock.

public static final Thread.State NEW

Added in API level 1

The thread has been created, but has never been started.

public static final Thread.State RUNNABLE

Added in API level 1

The thread may be run.

public static final Thread.State TERMINATED

Added in API level 1

The thread has been terminated.

public static final Thread.State TIMED_WAITING

Added in API level 1

The thread is waiting for a specified amount of time.

public static final Thread.State WAITING

Added in API level 1

The thread is waiting.

Public Methods

public static Thread.State valueOf ( String name)

Added in API level 1

public static final State[] values ()

Added in API level 1