Build.VERSION_CODES  |  API reference  |  Android Developers (original) (raw)


public static class Build.VERSION_CODES
extends [Object](/reference/java/lang/Object) ``


Enumeration of the currently known SDK version codes. These are the values that can be found in [VERSION.SDK](/reference/android/os/Build.VERSION#SDK). Version numbers increment monotonically with each official platform release.

Summary

Constants
int BAKLAVA Baklava.
int BASE The original, first, version of Android.
int BASE_1_1 First Android update.
int CINNAMON_BUN Cinnamon Bun.
int CUPCAKE C.
int CUR_DEVELOPMENT Magic version number for a current development build, which has not yet turned into an official release.
int DONUT D.
int ECLAIR E.
int ECLAIR_0_1 E incremental update.
int ECLAIR_MR1 E MR1.
int FROYO F.
int GINGERBREAD G.
int GINGERBREAD_MR1 G MR1.
int HONEYCOMB H.
int HONEYCOMB_MR1 H MR1.
int HONEYCOMB_MR2 H MR2.
int ICE_CREAM_SANDWICH I.
int ICE_CREAM_SANDWICH_MR1 I MR1.
int JELLY_BEAN J.
int JELLY_BEAN_MR1 J MR1.
int JELLY_BEAN_MR2 J MR2.
int KITKAT K.
int KITKAT_WATCH K for watches.
int LOLLIPOP L.
int LOLLIPOP_MR1 L MR1.
int M M.
int N N.
int N_MR1 N MR1.
int O O.
int O_MR1 O MR1.
int P P.
int Q Q.
int R R.
int S S.
int S_V2 S V2.
int TIRAMISU Tiramisu.
int UPSIDE_DOWN_CAKE Upside Down Cake.
int VANILLA_ICE_CREAM Vanilla Ice Cream.
Public constructors
VERSION_CODES()
Inherited methods
From class java.lang.Object Object clone() Creates and returns a copy of this object. boolean equals(Object obj) Indicates whether some other object is "equal to" this one. void finalize() Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. finalClass<?> getClass() Returns the runtime class of this Object. int hashCode() Returns a hash code value for the object. final void notify() Wakes up a single thread that is waiting on this object's monitor. final void notifyAll() Wakes up all threads that are waiting on this object's monitor. String toString() Returns a string representation of the object. final void wait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. final void wait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. final void wait() Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Constants

BAKLAVA

public static final int BAKLAVA

Baklava.

Constant Value: 36 (0x00000024)

BASE

public static final int BASE

The original, first, version of Android. Yay!

Released publicly as Android 1.0 in September 2008.

Constant Value: 1 (0x00000001)

BASE_1_1

public static final int BASE_1_1

First Android update.

Released publicly as Android 1.1 in February 2009.

Constant Value: 2 (0x00000002)

CINNAMON_BUN

public static final int CINNAMON_BUN

Cinnamon Bun.

Constant Value: 37 (0x00000025)

CUPCAKE

public static final int CUPCAKE

C.

Released publicly as Android 1.5 in April 2009.

Constant Value: 3 (0x00000003)

CUR_DEVELOPMENT

public static final int CUR_DEVELOPMENT

Magic version number for a current development build, which has not yet turned into an official release.

Constant Value: 10000 (0x00002710)

DONUT

public static final int DONUT

D.

Released publicly as Android 1.6 in September 2009.

Applications targeting this or a later release will get these new changes in behavior:

Constant Value: 4 (0x00000004)

ECLAIR

public static final int ECLAIR

E.

Released publicly as Android 2.0 in October 2009.

Applications targeting this or a later release will get these new changes in behavior:

Constant Value: 5 (0x00000005)

ECLAIR_0_1

public static final int ECLAIR_0_1

E incremental update.

Released publicly as Android 2.0.1 in December 2009.

Constant Value: 6 (0x00000006)

ECLAIR_MR1

public static final int ECLAIR_MR1

E MR1.

Released publicly as Android 2.1 in January 2010.

Constant Value: 7 (0x00000007)

FROYO

public static final int FROYO

F.

Released publicly as Android 2.2 in May 2010.

Constant Value: 8 (0x00000008)

GINGERBREAD

public static final int GINGERBREAD

G.

Released publicly as Android 2.3 in December 2010.

Applications targeting this or a later release will get these new changes in behavior:

Constant Value: 9 (0x00000009)

GINGERBREAD_MR1

public static final int GINGERBREAD_MR1

G MR1.

Released publicly as Android 2.3.3 in February 2011.

Constant Value: 10 (0x0000000a)

HONEYCOMB

public static final int HONEYCOMB

H.

Released publicly as Android 3.0 in February 2011.

Applications targeting this or a later release will get these new changes in behavior:

Constant Value: 11 (0x0000000b)

HONEYCOMB_MR1

public static final int HONEYCOMB_MR1

H MR1.

Released publicly as Android 3.1 in May 2011.

Constant Value: 12 (0x0000000c)

ICE_CREAM_SANDWICH

public static final int ICE_CREAM_SANDWICH

I.

Released publicly as Android 4.0 in October 2011.

Applications targeting this or a later release will get these new changes in behavior:

Constant Value: 14 (0x0000000e)

ICE_CREAM_SANDWICH_MR1

public static final int ICE_CREAM_SANDWICH_MR1

I MR1.

Released publicly as Android 4.03 in December 2011.

Constant Value: 15 (0x0000000f)

JELLY_BEAN_MR1

public static final int JELLY_BEAN_MR1

J MR1.

Released publicly as Android 4.2 in November 2012.

Applications targeting this or a later release will get these new changes in behavior:

Constant Value: 17 (0x00000011)

JELLY_BEAN_MR2

public static final int JELLY_BEAN_MR2

J MR2.

Released publicly as Android 4.3 in July 2013.

Constant Value: 18 (0x00000012)

KITKAT_WATCH

public static final int KITKAT_WATCH

K for watches.

Released publicly as Android 4.4W in June 2014.

Applications targeting this or a later release will get these new changes in behavior:

Constant Value: 20 (0x00000014)

LOLLIPOP

public static final int LOLLIPOP

L.

Released publicly as Android 5.0 in November 2014.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see theAndroid Lollipop overview.

Constant Value: 21 (0x00000015)

LOLLIPOP_MR1

public static final int LOLLIPOP_MR1

L MR1.

Released publicly as Android 5.1 in March 2015.

For more information about this release, see theAndroid 5.1 APIs.

Constant Value: 22 (0x00000016)

N_MR1

public static final int N_MR1

N MR1.

Released publicly as Android 7.1 in October 2016.

For more information about this release, seeAndroid 7.1 for Developers.

Constant Value: 25 (0x00000019)

O

public static final int O

O.

Released publicly as Android 8.0 in August 2017.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the Android Oreo overview.

Constant Value: 26 (0x0000001a)

O_MR1

public static final int O_MR1

O MR1.

Released publicly as Android 8.1 in December 2017.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, seeAndroid 8.1 features and APIs.

Constant Value: 27 (0x0000001b)

S

public static final int S

S.

Constant Value: 31 (0x0000001f)

S_V2

public static final int S_V2

S V2. Once more unto the breach, dear friends, once more.

Constant Value: 32 (0x00000020)

TIRAMISU

public static final int TIRAMISU

Tiramisu.

Constant Value: 33 (0x00000021)

UPSIDE_DOWN_CAKE

public static final int UPSIDE_DOWN_CAKE

Upside Down Cake.

Constant Value: 34 (0x00000022)

VANILLA_ICE_CREAM

public static final int VANILLA_ICE_CREAM

Vanilla Ice Cream.

Constant Value: 35 (0x00000023)

Public constructors

VERSION_CODES

public VERSION_CODES ()