# Build.VERSION_CODES

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/os/Build.VERSION_CODES#constants)\|[Ctors](https://developer.android.com/reference/android/os/Build.VERSION_CODES#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/os/Build.VERSION_CODES#inhmethods)  

# Build.VERSION_CODES

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES "View this page in Kotlin")\|Java

`
public
static


class
Build.VERSION_CODES
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|--------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.os.Build.VERSION_CODES |

<br />

*** ** * ** ***

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

## Summary

|                                                                                                       ### Constants                                                                                                       ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [BAKLAVA](https://developer.android.com/reference/android/os/Build.VERSION_CODES#BAKLAVA) Baklava.                                                                                                                 |
| `int` | [BASE](https://developer.android.com/reference/android/os/Build.VERSION_CODES#BASE) The original, first, version of Android.                                                                                       |
| `int` | [BASE_1_1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#BASE_1_1) First Android update.                                                                                                  |
| `int` | [CUPCAKE](https://developer.android.com/reference/android/os/Build.VERSION_CODES#CUPCAKE) C.                                                                                                                       |
| `int` | [CUR_DEVELOPMENT](https://developer.android.com/reference/android/os/Build.VERSION_CODES#CUR_DEVELOPMENT) Magic version number for a current development build, which has not yet turned into an official release. |
| `int` | [DONUT](https://developer.android.com/reference/android/os/Build.VERSION_CODES#DONUT) D.                                                                                                                           |
| `int` | [ECLAIR](https://developer.android.com/reference/android/os/Build.VERSION_CODES#ECLAIR) E.                                                                                                                         |
| `int` | [ECLAIR_0_1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#ECLAIR_0_1) E incremental update.                                                                                              |
| `int` | [ECLAIR_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#ECLAIR_MR1) E MR1.                                                                                                             |
| `int` | [FROYO](https://developer.android.com/reference/android/os/Build.VERSION_CODES#FROYO) F.                                                                                                                           |
| `int` | [GINGERBREAD](https://developer.android.com/reference/android/os/Build.VERSION_CODES#GINGERBREAD) G.                                                                                                               |
| `int` | [GINGERBREAD_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#GINGERBREAD_MR1) G MR1.                                                                                                   |
| `int` | [HONEYCOMB](https://developer.android.com/reference/android/os/Build.VERSION_CODES#HONEYCOMB) H.                                                                                                                   |
| `int` | [HONEYCOMB_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#HONEYCOMB_MR1) H MR1.                                                                                                       |
| `int` | [HONEYCOMB_MR2](https://developer.android.com/reference/android/os/Build.VERSION_CODES#HONEYCOMB_MR2) H MR2.                                                                                                       |
| `int` | [ICE_CREAM_SANDWICH](https://developer.android.com/reference/android/os/Build.VERSION_CODES#ICE_CREAM_SANDWICH) I.                                                                                                 |
| `int` | [ICE_CREAM_SANDWICH_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#ICE_CREAM_SANDWICH_MR1) I MR1.                                                                                     |
| `int` | [JELLY_BEAN](https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN) J.                                                                                                                 |
| `int` | [JELLY_BEAN_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR1) J MR1.                                                                                                     |
| `int` | [JELLY_BEAN_MR2](https://developer.android.com/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR2) J MR2.                                                                                                     |
| `int` | [KITKAT](https://developer.android.com/reference/android/os/Build.VERSION_CODES#KITKAT) K.                                                                                                                         |
| `int` | [KITKAT_WATCH](https://developer.android.com/reference/android/os/Build.VERSION_CODES#KITKAT_WATCH) K for watches.                                                                                                 |
| `int` | [LOLLIPOP](https://developer.android.com/reference/android/os/Build.VERSION_CODES#LOLLIPOP) L.                                                                                                                     |
| `int` | [LOLLIPOP_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#LOLLIPOP_MR1) L MR1.                                                                                                         |
| `int` | [M](https://developer.android.com/reference/android/os/Build.VERSION_CODES#M) M.                                                                                                                                   |
| `int` | [N](https://developer.android.com/reference/android/os/Build.VERSION_CODES#N) N.                                                                                                                                   |
| `int` | [N_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#N_MR1) N MR1.                                                                                                                       |
| `int` | [O](https://developer.android.com/reference/android/os/Build.VERSION_CODES#O) O.                                                                                                                                   |
| `int` | [O_MR1](https://developer.android.com/reference/android/os/Build.VERSION_CODES#O_MR1) O MR1.                                                                                                                       |
| `int` | [P](https://developer.android.com/reference/android/os/Build.VERSION_CODES#P) P.                                                                                                                                   |
| `int` | [Q](https://developer.android.com/reference/android/os/Build.VERSION_CODES#Q) Q.                                                                                                                                   |
| `int` | [R](https://developer.android.com/reference/android/os/Build.VERSION_CODES#R) R.                                                                                                                                   |
| `int` | [S](https://developer.android.com/reference/android/os/Build.VERSION_CODES#S) S.                                                                                                                                   |
| `int` | [S_V2](https://developer.android.com/reference/android/os/Build.VERSION_CODES#S_V2) S V2.                                                                                                                          |
| `int` | [TIRAMISU](https://developer.android.com/reference/android/os/Build.VERSION_CODES#TIRAMISU) Tiramisu.                                                                                                              |
| `int` | [UPSIDE_DOWN_CAKE](https://developer.android.com/reference/android/os/Build.VERSION_CODES#UPSIDE_DOWN_CAKE) Upside Down Cake.                                                                                      |
| `int` | [VANILLA_ICE_CREAM](https://developer.android.com/reference/android/os/Build.VERSION_CODES#VANILLA_ICE_CREAM) Vanilla Ice Cream.                                                                                   |

|                                              ### Public constructors                                               ||
|-----------------------------------------------------------------------------------------------------------------|---|
| ` `[VERSION_CODES](https://developer.android.com/reference/android/os/Build.VERSION_CODES#VERSION_CODES())`() ` |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(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](https://developer.android.com/reference/java/lang/Object#wait(long))`(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](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### BAKLAVA

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int BAKLAVA
```

Baklava.

<br />

Constant Value: 36 (0x00000024)  

### BASE

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int BASE
```

The original, first, version of Android. Yay!

Released publicly as Android 1.0 in September 2008.

<br />

Constant Value: 1 (0x00000001)  

### BASE_1_1

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int BASE_1_1
```

First Android update.

Released publicly as Android 1.1 in February 2009.

<br />

Constant Value: 2 (0x00000002)  

### CUPCAKE

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int CUPCAKE
```

C.

Released publicly as Android 1.5 in April 2009.

<br />

Constant Value: 3 (0x00000003)  

### CUR_DEVELOPMENT

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int CUR_DEVELOPMENT
```

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

<br />

Constant Value: 10000 (0x00002710)  

### DONUT

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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:

- They must explicitly request the[Manifest.permission.WRITE_EXTERNAL_STORAGE](https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE)permission to be able to modify the contents of the SD card. (Apps targeting earlier versions will always request the permission.)
- They must explicitly request the[Manifest.permission.READ_PHONE_STATE](https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE)permission to be able to be able to retrieve phone state info. (Apps targeting earlier versions will always request the permission.)
- They are assumed to support different screen densities and sizes. (Apps targeting earlier versions are assumed to only support medium density normal size screens unless otherwise indicated). They can still explicitly specify screen support either way with the supports-screens manifest tag.
- [TabHost](https://developer.android.com/reference/android/widget/TabHost)will use the new dark tab background design.

<br />

<br />

Constant Value: 4 (0x00000004)  

### ECLAIR

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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:

- The[Service.onStartCommand](https://developer.android.com/reference/android/app/Service#onStartCommand(android.content.Intent,%20int,%20int))function will return the new[Service.START_STICKY](https://developer.android.com/reference/android/app/Service#START_STICKY)behavior instead of the old compatibility[Service.START_STICKY_COMPATIBILITY](https://developer.android.com/reference/android/app/Service#START_STICKY_COMPATIBILITY).
- The[Activity](https://developer.android.com/reference/android/app/Activity)class will now execute back key presses on the key up instead of key down, to be able to detect canceled presses from virtual keys.
- The[TabWidget](https://developer.android.com/reference/android/widget/TabWidget)class will use a new color scheme for tabs. In the new scheme, the foreground tab has a medium gray background the background tabs have a dark gray background.

<br />

<br />

Constant Value: 5 (0x00000005)  

### ECLAIR_0_1

Added in[API level 6](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ECLAIR_0_1
```

E incremental update.

Released publicly as Android 2.0.1 in December 2009.

<br />

Constant Value: 6 (0x00000006)  

### ECLAIR_MR1

Added in[API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ECLAIR_MR1
```

E MR1.

Released publicly as Android 2.1 in January 2010.

<br />

Constant Value: 7 (0x00000007)  

### FROYO

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int FROYO
```

F.

Released publicly as Android 2.2 in May 2010.

<br />

Constant Value: 8 (0x00000008)  

### GINGERBREAD

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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:

- The application's notification icons will be shown on the new dark status bar background, so must be visible in this situation.

<br />

<br />

Constant Value: 9 (0x00000009)  

### GINGERBREAD_MR1

Added in[API level 10](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int GINGERBREAD_MR1
```

G MR1.

Released publicly as Android 2.3.3 in February 2011.

<br />

Constant Value: 10 (0x0000000a)  

### HONEYCOMB

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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:

- The default theme for applications is now dark holographic:[R.style.Theme_Holo](https://developer.android.com/reference/android/R.style#Theme_Holo).
- On large screen devices that do not have a physical menu button, the soft (compatibility) menu is disabled.
- The activity lifecycle has changed slightly as per[Activity](https://developer.android.com/reference/android/app/Activity).
- An application will crash if it does not call through to the super implementation of its[Activity.onPause()](https://developer.android.com/reference/android/app/Activity#onPause())method.
- When an application requires a permission to access one of its components (activity, receiver, service, provider), this permission is no longer enforced when the application wants to access its own component. This means it can require a permission on a component that it does not itself hold and still access that component.
- [Context.getSharedPreferences()](https://developer.android.com/reference/android/content/Context#getSharedPreferences(java.lang.String,%20int))will not automatically reload the preferences if they have changed on storage, unless[Context.MODE_MULTI_PROCESS](https://developer.android.com/reference/android/content/Context#MODE_MULTI_PROCESS)is used.
- [ViewGroup.setMotionEventSplittingEnabled(boolean)](https://developer.android.com/reference/android/view/ViewGroup#setMotionEventSplittingEnabled(boolean))will default to true.
- [WindowManager.LayoutParams.FLAG_SPLIT_TOUCH](https://developer.android.com/reference/android/view/WindowManager.LayoutParams#FLAG_SPLIT_TOUCH)is enabled by default on windows.
- [PopupWindow.isSplitTouchEnabled()](https://developer.android.com/reference/android/widget/PopupWindow#isSplitTouchEnabled())will return true by default.
- [GridView](https://developer.android.com/reference/android/widget/GridView)and[ListView](https://developer.android.com/reference/android/widget/ListView)will use[View.setActivated](https://developer.android.com/reference/android/view/View#setActivated(boolean))for selected items if they do not implement[Checkable](https://developer.android.com/reference/android/widget/Checkable).
- [Scroller](https://developer.android.com/reference/android/widget/Scroller)will be constructed with "flywheel" behavior enabled by default.

<br />

<br />

Constant Value: 11 (0x0000000b)  

### HONEYCOMB_MR1

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int HONEYCOMB_MR1
```

H MR1.

Released publicly as Android 3.1 in May 2011.

<br />

Constant Value: 12 (0x0000000c)  

### HONEYCOMB_MR2

Added in[API level 13](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int HONEYCOMB_MR2
```

H MR2.

Released publicly as Android 3.2 in July 2011.

Update to Honeycomb MR1 to support 7 inch tablets, improve screen compatibility mode, etc.

As of this version, applications that don't say whether they support XLARGE screens will be assumed to do so only if they target[HONEYCOMB](https://developer.android.com/reference/android/os/Build.VERSION_CODES#HONEYCOMB)or later; it had been[GINGERBREAD](https://developer.android.com/reference/android/os/Build.VERSION_CODES#GINGERBREAD)or later. Applications that don't support a screen size at least as large as the current screen will provide the user with a UI to switch them in to screen size compatibility mode.

This version introduces new screen size resource qualifiers based on the screen size in dp: see[Configuration.screenWidthDp](https://developer.android.com/reference/android/content/res/Configuration#screenWidthDp),[Configuration.screenHeightDp](https://developer.android.com/reference/android/content/res/Configuration#screenHeightDp), and[Configuration.smallestScreenWidthDp](https://developer.android.com/reference/android/content/res/Configuration#smallestScreenWidthDp). Supplying these in \<supports-screens\> as per[ApplicationInfo.requiresSmallestWidthDp](https://developer.android.com/reference/android/content/pm/ApplicationInfo#requiresSmallestWidthDp),[ApplicationInfo.compatibleWidthLimitDp](https://developer.android.com/reference/android/content/pm/ApplicationInfo#compatibleWidthLimitDp), and[ApplicationInfo.largestWidthLimitDp](https://developer.android.com/reference/android/content/pm/ApplicationInfo#largestWidthLimitDp)is preferred over the older screen size buckets and for older devices the appropriate buckets will be inferred from them.

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

- New[PackageManager.FEATURE_SCREEN_PORTRAIT](https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_SCREEN_PORTRAIT)and[PackageManager.FEATURE_SCREEN_LANDSCAPE](https://developer.android.com/reference/android/content/pm/PackageManager#FEATURE_SCREEN_LANDSCAPE)features were introduced in this release. Applications that target previous platform versions are assumed to require both portrait and landscape support in the device; when targeting Honeycomb MR1 or greater the application is responsible for specifying any specific orientation it requires.

- [AsyncTask](https://developer.android.com/reference/android/os/AsyncTask)will use the serial executor by default when calling[AsyncTask.execute(Params)](https://developer.android.com/reference/android/os/AsyncTask#execute(Params[])).

- [ActivityInfo.configChanges](https://developer.android.com/reference/android/content/pm/ActivityInfo#configChanges)will have the[ActivityInfo.CONFIG_SCREEN_SIZE](https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_SCREEN_SIZE)and[ActivityInfo.CONFIG_SMALLEST_SCREEN_SIZE](https://developer.android.com/reference/android/content/pm/ActivityInfo#CONFIG_SMALLEST_SCREEN_SIZE)bits set; these need to be cleared for older applications because some developers have done absolute comparisons against this value instead of correctly masking the bits they are interested in.

<br />

<br />

Constant Value: 13 (0x0000000d)  

### ICE_CREAM_SANDWICH

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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:

- For devices without a dedicated menu key, the software compatibility menu key will not be shown even on phones. By targeting Ice Cream Sandwich or later, your UI must always have its own menu UI affordance if needed, on both tablets and phones. The ActionBar will take care of this for you.
- 2d drawing hardware acceleration is now turned on by default. You can use[android:hardwareAccelerated](https://developer.android.com/reference/android/R.attr#hardwareAccelerated)to turn it off if needed, although this is strongly discouraged since it will result in poor performance on larger screen devices.
- The default theme for applications is now the "device default" theme:[R.style.Theme_DeviceDefault](https://developer.android.com/reference/android/R.style#Theme_DeviceDefault). This may be the holo dark theme or a different dark theme defined by the specific device. The[R.style.Theme_Holo](https://developer.android.com/reference/android/R.style#Theme_Holo)family must not be modified for a device to be considered compatible. Applications that explicitly request a theme from the Holo family will be guaranteed that these themes will not change character within the same platform version. Applications that wish to blend in with the device should use a theme from the[R.style.Theme_DeviceDefault](https://developer.android.com/reference/android/R.style#Theme_DeviceDefault)family.
- Managed cursors can now throw an exception if you directly close the cursor yourself without stopping the management of it; previously failures would be silently ignored.
- The fadingEdge attribute on views will be ignored (fading edges is no longer a standard part of the UI). A new requiresFadingEdge attribute allows applications to still force fading edges on for special cases.
- [Context.bindService()](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))will not automatically add in[Context.BIND_WAIVE_PRIORITY](https://developer.android.com/reference/android/content/Context#BIND_WAIVE_PRIORITY).
- App Widgets will have standard padding automatically added around them, rather than relying on the padding being baked into the widget itself.
- An exception will be thrown if you try to change the type of a window after it has been added to the window manager. Previously this would result in random incorrect behavior.
- [AnimationSet](https://developer.android.com/reference/android/view/animation/AnimationSet)will parse out the duration, fillBefore, fillAfter, repeatMode, and startOffset XML attributes that are defined.
- [ActionBar.setHomeButtonEnabled()](https://developer.android.com/reference/android/app/ActionBar#setHomeButtonEnabled(boolean))is false by default.

<br />

<br />

Constant Value: 14 (0x0000000e)  

### ICE_CREAM_SANDWICH_MR1

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int ICE_CREAM_SANDWICH_MR1
```

I MR1.

Released publicly as Android 4.03 in December 2011.

<br />

Constant Value: 15 (0x0000000f)  

### JELLY_BEAN

Added in[API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int JELLY_BEAN
```

J.

Released publicly as Android 4.1 in July 2012.

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

- You must explicitly request the[Manifest.permission.READ_CALL_LOG](https://developer.android.com/reference/android/Manifest.permission#READ_CALL_LOG)and/or[Manifest.permission.WRITE_CALL_LOG](https://developer.android.com/reference/android/Manifest.permission#WRITE_CALL_LOG)permissions; access to the call log is no longer implicitly provided through[Manifest.permission.READ_CONTACTS](https://developer.android.com/reference/android/Manifest.permission#READ_CONTACTS)and[Manifest.permission.WRITE_CONTACTS](https://developer.android.com/reference/android/Manifest.permission#WRITE_CONTACTS).
- [RemoteViews](https://developer.android.com/reference/android/widget/RemoteViews)will throw an exception if setting an onClick handler for views being generated by a[RemoteViewsService](https://developer.android.com/reference/android/widget/RemoteViewsService)for a collection container; previously this just resulted in a warning log message.
- New[ActionBar](https://developer.android.com/reference/android/app/ActionBar)policy for embedded tabs: embedded tabs are now always stacked in the action bar when in portrait mode, regardless of the size of the screen.
- [WebSettings.setAllowFileAccessFromFileURLs](https://developer.android.com/reference/android/webkit/WebSettings#setAllowFileAccessFromFileURLs(boolean))and[WebSettings.setAllowUniversalAccessFromFileURLs](https://developer.android.com/reference/android/webkit/WebSettings#setAllowUniversalAccessFromFileURLs(boolean))default to false.
- Calls to[PackageManager.setComponentEnabledSetting](https://developer.android.com/reference/android/content/pm/PackageManager#setComponentEnabledSetting(android.content.ComponentName,%20int,%20int))will now throw an IllegalArgumentException if the given component class name does not exist in the application's manifest.
- `NfcAdapter.setNdefPushMessage`,`NfcAdapter.setNdefPushMessageCallback`and`NfcAdapter.setOnNdefPushCompleteCallback`will throw IllegalStateException if called after the Activity has been destroyed.
- Accessibility services must require the new[Manifest.permission.BIND_ACCESSIBILITY_SERVICE](https://developer.android.com/reference/android/Manifest.permission#BIND_ACCESSIBILITY_SERVICE)permission or they will not be available for use.
- [AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS](https://developer.android.com/reference/android/accessibilityservice/AccessibilityServiceInfo#FLAG_INCLUDE_NOT_IMPORTANT_VIEWS)must be set for unimportant views to be included in queries.

<br />

<br />

Constant Value: 16 (0x00000010)  

### JELLY_BEAN_MR1

Added in[API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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:

- Content Providers: The default value of`android:exported`is now`false`. See[the android:exported section](https://developer.android.com/guide/topics/manifest/provider-element#exported)in the provider documentation for more details.
- [View.getLayoutDirection()](https://developer.android.com/reference/android/view/View#getLayoutDirection())can return different values than[View.LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/view/View#LAYOUT_DIRECTION_LTR)based on the locale etc.
- [WebView.addJavascriptInterface](https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String))requires explicit annotations on methods for them to be accessible from Javascript.

<br />

<br />

Constant Value: 17 (0x00000011)  

### JELLY_BEAN_MR2

Added in[API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int JELLY_BEAN_MR2
```

J MR2.

Released publicly as Android 4.3 in July 2013.

<br />

Constant Value: 18 (0x00000012)  

### KITKAT

Added in[API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int KITKAT
```

K.

Released publicly as Android 4.4 in October 2013.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the[Android KitKat overview](https://developer.android.com/about/versions/kitkat).

- The default result of[PreferenceActivity.isValueFragment](https://developer.android.com/reference/android/preference/PreferenceActivity#isValidFragment(java.lang.String))becomes false instead of true.
- In[WebView](https://developer.android.com/reference/android/webkit/WebView), apps targeting earlier versions will have JS URLs evaluated directly and any result of the evaluation will not replace the current page content. Apps targetting KITKAT or later that load a JS URL will have the result of that URL replace the content of the current page
- [AlarmManager.set](https://developer.android.com/reference/android/app/AlarmManager#set(int,%20long,%20android.app.PendingIntent))becomes interpreted as an inexact value, to give the system more flexibility in scheduling alarms.
- [Context.getSharedPreferences](https://developer.android.com/reference/android/content/Context#getSharedPreferences(java.lang.String,%20int))no longer allows a null name.
- [RelativeLayout](https://developer.android.com/reference/android/widget/RelativeLayout)changes to compute wrapped content margins correctly.
- [ActionBar](https://developer.android.com/reference/android/app/ActionBar)'s window content overlay is allowed to be drawn.
- The[Manifest.permission.READ_EXTERNAL_STORAGE](https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE)permission is now always enforced.
- Access to package-specific external storage directories belonging to the calling app no longer requires the[Manifest.permission.READ_EXTERNAL_STORAGE](https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE)or[Manifest.permission.WRITE_EXTERNAL_STORAGE](https://developer.android.com/reference/android/Manifest.permission#WRITE_EXTERNAL_STORAGE)permissions.

<br />

<br />

Constant Value: 19 (0x00000013)  

### KITKAT_WATCH

Added in[API level 20](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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:

- [AlertDialog](https://developer.android.com/reference/android/app/AlertDialog)might not have a default background if the theme does not specify one.

<br />

<br />

Constant Value: 20 (0x00000014)  

### LOLLIPOP

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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 the[Android Lollipop overview](https://developer.android.com/about/versions/lollipop).

- [Context.bindService](https://developer.android.com/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection))now requires an explicit Intent, and will throw an exception if given an implicit Intent.
- [Notification.Builder](https://developer.android.com/reference/android/app/Notification.Builder)will not have the colors of their various notification elements adjusted to better match the new material design look.
- [Message](https://developer.android.com/reference/android/os/Message)will validate that a message is not currently in use when it is recycled.
- Hardware accelerated drawing in windows will be enabled automatically in most places.
- [Spinner](https://developer.android.com/reference/android/widget/Spinner)throws an exception if attaching an adapter with more than one item type.
- If the app is a launcher, the launcher will be available to the user even when they are using corporate profiles (which requires that the app use[LauncherApps](https://developer.android.com/reference/android/content/pm/LauncherApps)to correctly populate its apps UI).
- Calling[Service.stopForeground](https://developer.android.com/reference/android/app/Service#stopForeground(boolean))with removeNotification false will modify the still posted notification so that it is no longer forced to be ongoing.
- A[DreamService](https://developer.android.com/reference/android/service/dreams/DreamService)must require the[Manifest.permission.BIND_DREAM_SERVICE](https://developer.android.com/reference/android/Manifest.permission#BIND_DREAM_SERVICE)permission to be usable.

<br />

<br />

Constant Value: 21 (0x00000015)  

### LOLLIPOP_MR1

Added in[API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int LOLLIPOP_MR1
```

L MR1.

Released publicly as Android 5.1 in March 2015.

For more information about this release, see the[Android 5.1 APIs](https://developer.android.com/about/versions/android-5.1).

<br />

Constant Value: 22 (0x00000016)  

### M

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int M
```

M.

Released publicly as Android 6.0 in October 2015.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the[Android 6.0 Marshmallow overview](https://developer.android.com/about/versions/marshmallow).

- Runtime permissions. Dangerous permissions are no longer granted at install time, but must be requested by the application at runtime through[Activity.requestPermissions(String, int)](https://developer.android.com/reference/android/app/Activity#requestPermissions(java.lang.String[],%20int)).
- Bluetooth and Wi-Fi scanning now requires holding the location permission.
- [AlarmManager.setTimeZone](https://developer.android.com/reference/android/app/AlarmManager#setTimeZone(java.lang.String))will fail if the given timezone is non-Olson.
- Activity transitions will only return shared elements mapped in the returned view hierarchy back to the calling activity.
- [View](https://developer.android.com/reference/android/view/View)allows a number of behaviors that may break existing apps: Canvas throws an exception if restore() is called too many times, widgets may return a hint size when returning UNSPECIFIED measure specs, and it will respect the attributes[R.attr.foreground](https://developer.android.com/reference/android/R.attr#foreground),[R.attr.foregroundGravity](https://developer.android.com/reference/android/R.attr#foregroundGravity),[R.attr.foregroundTint](https://developer.android.com/reference/android/R.attr#foregroundTint), and[R.attr.foregroundTintMode](https://developer.android.com/reference/android/R.attr#foregroundTintMode).
- [MotionEvent.getButtonState](https://developer.android.com/reference/android/view/MotionEvent#getButtonState())will no longer report[MotionEvent.BUTTON_PRIMARY](https://developer.android.com/reference/android/view/MotionEvent#BUTTON_PRIMARY)and[MotionEvent.BUTTON_SECONDARY](https://developer.android.com/reference/android/view/MotionEvent#BUTTON_SECONDARY)as synonyms for[MotionEvent.BUTTON_STYLUS_PRIMARY](https://developer.android.com/reference/android/view/MotionEvent#BUTTON_STYLUS_PRIMARY)and[MotionEvent.BUTTON_STYLUS_SECONDARY](https://developer.android.com/reference/android/view/MotionEvent#BUTTON_STYLUS_SECONDARY).
- [ScrollView](https://developer.android.com/reference/android/widget/ScrollView)now respects the layout param margins when measuring.

<br />

<br />

Constant Value: 23 (0x00000017)  

### N

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int N
```

N.

Released publicly as Android 7.0 in August 2016.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the[Android Nougat overview](https://developer.android.com/about/versions/nougat).

- [DownloadManager.Request.setAllowedNetworkTypes](https://developer.android.com/reference/android/app/DownloadManager.Request#setAllowedNetworkTypes(int))will disable "allow over metered" when specifying only[DownloadManager.Request.NETWORK_WIFI](https://developer.android.com/reference/android/app/DownloadManager.Request#NETWORK_WIFI).
- [DownloadManager](https://developer.android.com/reference/android/app/DownloadManager)no longer allows access to raw file paths.
- [Notification.Builder.setShowWhen](https://developer.android.com/reference/android/app/Notification.Builder#setShowWhen(boolean))must be called explicitly to have the time shown, and various other changes in[Notification.Builder](https://developer.android.com/reference/android/app/Notification.Builder)to how notifications are shown.
- [Context.MODE_WORLD_READABLE](https://developer.android.com/reference/android/content/Context#MODE_WORLD_READABLE)and[Context.MODE_WORLD_WRITEABLE](https://developer.android.com/reference/android/content/Context#MODE_WORLD_WRITEABLE)are no longer supported.
- [FileUriExposedException](https://developer.android.com/reference/android/os/FileUriExposedException)will be thrown to applications.
- Applications will see global drag and drops as per[View.DRAG_FLAG_GLOBAL](https://developer.android.com/reference/android/view/View#DRAG_FLAG_GLOBAL).
- [WebView.evaluateJavascript](https://developer.android.com/reference/android/webkit/WebView#evaluateJavascript(java.lang.String,%20android.webkit.ValueCallback<java.lang.String>))will not persist state from an empty WebView.
- [AnimatorSet](https://developer.android.com/reference/android/animation/AnimatorSet)will not ignore calls to end() before start().
- [AlarmManager.cancel](https://developer.android.com/reference/android/app/AlarmManager#cancel(android.app.PendingIntent))will throw a NullPointerException if given a null operation.
- [FragmentManager](https://developer.android.com/reference/android/app/FragmentManager)will ensure fragments have been created before being placed on the back stack.
- [FragmentManager](https://developer.android.com/reference/android/app/FragmentManager)restores fragments in[Fragment.onCreate](https://developer.android.com/reference/android/app/Fragment#onCreate(android.os.Bundle))rather than after the method returns.
- [R.attr.resizeableActivity](https://developer.android.com/reference/android/R.attr#resizeableActivity)defaults to true.
- [AnimatedVectorDrawable](https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable)throws exceptions when opening invalid VectorDrawable animations.
- [ViewGroup.MarginLayoutParams](https://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams)will no longer be dropped when converting between some types of layout params (such as[LinearLayout.LayoutParams](https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams)to[RelativeLayout.LayoutParams](https://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams)).
- Your application processes will not be killed when the device density changes.
- Drag and drop. After a view receives the[DragEvent.ACTION_DRAG_ENTERED](https://developer.android.com/reference/android/view/DragEvent#ACTION_DRAG_ENTERED)event, when the drag shadow moves into a descendant view that can accept the data, the view receives the[DragEvent.ACTION_DRAG_EXITED](https://developer.android.com/reference/android/view/DragEvent#ACTION_DRAG_EXITED)event and won\\u2019t receive[DragEvent.ACTION_DRAG_LOCATION](https://developer.android.com/reference/android/view/DragEvent#ACTION_DRAG_LOCATION)and[DragEvent.ACTION_DROP](https://developer.android.com/reference/android/view/DragEvent#ACTION_DROP)events while the drag shadow is within that descendant view, even if the descendant view returns`false`from its handler for these events.

<br />

<br />

Constant Value: 24 (0x00000018)  

### N_MR1

Added in[API level 25](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int N_MR1
```

N MR1.

Released publicly as Android 7.1 in October 2016.

For more information about this release, see[Android 7.1 for Developers](https://developer.android.com/about/versions/nougat/android-7.1).

<br />

Constant Value: 25 (0x00000019)  

### O

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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](https://developer.android.com/about/versions/oreo).

- [Background execution limits](https://developer.android.com/about/versions/oreo/background)are applied to the application.
- The behavior of AccountManager's[AccountManager.getAccountsByType(String)](https://developer.android.com/reference/android/accounts/AccountManager#getAccountsByType(java.lang.String)),[AccountManager.getAccountsByTypeAndFeatures(String, String, AccountManagerCallback, Handler)](https://developer.android.com/reference/android/accounts/AccountManager#getAccountsByTypeAndFeatures(java.lang.String,%20java.lang.String[],%20android.accounts.AccountManagerCallback<android.accounts.Account[]>,%20android.os.Handler)), and[AccountManager.hasFeatures(Account, String, AccountManagerCallback, Handler)](https://developer.android.com/reference/android/accounts/AccountManager#hasFeatures(android.accounts.Account,%20java.lang.String[],%20android.accounts.AccountManagerCallback<java.lang.Boolean>,%20android.os.Handler))has changed as documented there.
- [ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE_PRE_26](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE_PRE_26)is now returned as[ActivityManager.RunningAppProcessInfo.IMPORTANCE_PERCEPTIBLE](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE).
- The[NotificationManager](https://developer.android.com/reference/android/app/NotificationManager)now requires the use of notification channels.
- Changes to the strict mode that are set in[Application.onCreate](https://developer.android.com/reference/android/app/Application#onCreate())will no longer be clobbered after that function returns.
- A shared library apk with native code will have that native code included in the library path of its clients.
- [Context.getSharedPreferences](https://developer.android.com/reference/android/content/Context#getSharedPreferences(java.lang.String,%20int))in credential encrypted storage will throw an exception before the user is unlocked.
- Attempting to retrieve a[Context.FINGERPRINT_SERVICE](https://developer.android.com/reference/android/content/Context#FINGERPRINT_SERVICE)on a device that does not support that feature will now throw a runtime exception.
- [Fragment](https://developer.android.com/reference/android/app/Fragment)will stop any active view animations when the fragment is stopped.
- Some compatibility code in Resources that attempts to use the default Theme the app may be using will be turned off, requiring the app to explicitly request resources with the right theme.
- [ContentResolver.notifyChange](https://developer.android.com/reference/android/content/ContentResolver#notifyChange(android.net.Uri,%20android.database.ContentObserver))and[ContentResolver.registerContentObserver](https://developer.android.com/reference/android/content/ContentResolver#registerContentObserver(android.net.Uri,%20boolean,%20android.database.ContentObserver))will throw a SecurityException if the caller does not have permission to access the provider (or the provider doesn't exit); otherwise the call will be silently ignored.
- [CameraDevice.createCaptureRequest](https://developer.android.com/reference/android/hardware/camera2/CameraDevice#createCaptureRequest(int))will enable[CaptureRequest.CONTROL_ENABLE_ZSL](https://developer.android.com/reference/android/hardware/camera2/CaptureRequest#CONTROL_ENABLE_ZSL)by default for still image capture.
- WallpaperManager's[WallpaperManager.getWallpaperFile(int)](https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperFile(int)),[WallpaperManager.getDrawable()](https://developer.android.com/reference/android/app/WallpaperManager#getDrawable()),[WallpaperManager.getFastDrawable()](https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable()),[WallpaperManager.peekDrawable()](https://developer.android.com/reference/android/app/WallpaperManager#peekDrawable()), and[WallpaperManager.peekFastDrawable()](https://developer.android.com/reference/android/app/WallpaperManager#peekFastDrawable())will throw an exception if you can not access the wallpaper.
- The behavior of[UsbDeviceConnection.requestWait](https://developer.android.com/reference/android/hardware/usb/UsbDeviceConnection#requestWait())is modified as per the documentation there.
- [StrictMode.VmPolicy.Builder.detectAll](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder#detectAll())will also enable[StrictMode.VmPolicy.Builder.detectContentUriWithoutPermission](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder#detectContentUriWithoutPermission())and[StrictMode.VmPolicy.Builder.detectUntaggedSockets](https://developer.android.com/reference/android/os/StrictMode.VmPolicy.Builder#detectUntaggedSockets()).
- [StrictMode.ThreadPolicy.Builder.detectAll](https://developer.android.com/reference/android/os/StrictMode.ThreadPolicy.Builder#detectAll())will also enable[StrictMode.ThreadPolicy.Builder.detectUnbufferedIo](https://developer.android.com/reference/android/os/StrictMode.ThreadPolicy.Builder#detectUnbufferedIo()).
- [DocumentsContract](https://developer.android.com/reference/android/provider/DocumentsContract)'s various methods will throw failure exceptions back to the caller instead of returning null.
- [View.hasFocusable](https://developer.android.com/reference/android/view/View#hasFocusable())now includes auto-focusable views.
- [SurfaceView](https://developer.android.com/reference/android/view/SurfaceView)will no longer always change the underlying Surface object when something about it changes; apps need to look at the current state of the object to determine which things they are interested in have changed.
- [WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY](https://developer.android.com/reference/android/view/WindowManager.LayoutParams#TYPE_APPLICATION_OVERLAY)must be used for overlay windows, other system overlay window types are not allowed.
- [ViewTreeObserver.addOnDrawListener](https://developer.android.com/reference/android/view/ViewTreeObserver#addOnDrawListener(android.view.ViewTreeObserver.OnDrawListener))will throw an exception if called from within onDraw.
- [Canvas.setBitmap](https://developer.android.com/reference/android/graphics/Canvas#setBitmap(android.graphics.Bitmap))will no longer preserve the current matrix and clip stack of the canvas.
- [ListPopupWindow.setHeight](https://developer.android.com/reference/android/widget/ListPopupWindow#setHeight(int))will throw an exception if a negative height is supplied.
- [TextView](https://developer.android.com/reference/android/widget/TextView)will use internationalized input for numbers, dates, and times.
- [Toast](https://developer.android.com/reference/android/widget/Toast)must be used for showing toast windows; the toast window type can not be directly used.
- [WifiManager.getConnectionInfo](https://developer.android.com/reference/android/net/wifi/WifiManager#getConnectionInfo())requires that the caller hold the location permission to return BSSID/SSID
- [WifiP2pManager.requestPeers](https://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager#requestPeers(android.net.wifi.p2p.WifiP2pManager.Channel,%20android.net.wifi.p2p.WifiP2pManager.PeerListListener))requires the caller hold the location permission.
- [R.attr.maxAspectRatio](https://developer.android.com/reference/android/R.attr#maxAspectRatio)defaults to 0, meaning there is no restriction on the app's maximum aspect ratio (so it can be stretched to fill larger screens).
- [R.attr.focusable](https://developer.android.com/reference/android/R.attr#focusable)defaults to a new state (`auto`) where it will inherit the value of[R.attr.clickable](https://developer.android.com/reference/android/R.attr#clickable)unless explicitly overridden.
- A default theme-appropriate focus-state highlight will be supplied to all Views which don't provide a focus-state drawable themselves. This can be disabled by setting[R.attr.defaultFocusHighlightEnabled](https://developer.android.com/reference/android/R.attr#defaultFocusHighlightEnabled)to false.

<br />

<br />

Constant Value: 26 (0x0000001a)  

### O_MR1

Added in[API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
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, see[Android 8.1 features and APIs](https://developer.android.com/about/versions/oreo/android-8.1).

- Apps exporting and linking to apk shared libraries must explicitly enumerate all signing certificates in a consistent order.
- [R.attr.screenOrientation](https://developer.android.com/reference/android/R.attr#screenOrientation)can not be used to request a fixed orientation if the associated activity is not fullscreen and opaque.

<br />

<br />

Constant Value: 27 (0x0000001b)  

### P

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int P
```

P.

Released publicly as Android 9 in August 2018.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the[Android 9 Pie overview](https://developer.android.com/about/versions/pie).

- [Service.startForeground](https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification))requires that apps hold the permission[Manifest.permission.FOREGROUND_SERVICE](https://developer.android.com/reference/android/Manifest.permission#FOREGROUND_SERVICE).
- [LinearLayout](https://developer.android.com/reference/android/widget/LinearLayout)will always remeasure weighted children, even if there is no excess space.

<br />

<br />

Constant Value: 28 (0x0000001c)  

### Q

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int Q
```

Q.

Released publicly as Android 10 in September 2019.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the[Android 10 overview](https://developer.android.com/about/versions/10).

- [Behavior changes: all apps](https://developer.android.com/about/versions/10/behavior-changes-all)
- [Behavior changes: apps targeting API 29+](https://developer.android.com/about/versions/10/behavior-changes-10)

<br />

<br />

Constant Value: 29 (0x0000001d)  

### R

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int R
```

R.

Released publicly as Android 11 in September 2020.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the[Android 11 overview](https://developer.android.com/about/versions/11).

- [Behavior changes: all apps](https://developer.android.com/about/versions/11/behavior-changes-all)
- [Behavior changes: Apps targeting Android 11](https://developer.android.com/about/versions/11/behavior-changes-11)
- [Updates to non-SDK interface restrictions in Android 11](https://developer.android.com/about/versions/11/non-sdk-11)

<br />

<br />

Constant Value: 30 (0x0000001e)  

### S

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int S
```

S.

<br />

Constant Value: 31 (0x0000001f)  

### S_V2

Added in[API level 32](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int S_V2
```

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

<br />

Constant Value: 32 (0x00000020)  

### TIRAMISU

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int TIRAMISU
```

Tiramisu.

<br />

Constant Value: 33 (0x00000021)  

### UPSIDE_DOWN_CAKE

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int UPSIDE_DOWN_CAKE
```

Upside Down Cake.

<br />

Constant Value: 34 (0x00000022)  

### VANILLA_ICE_CREAM

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int VANILLA_ICE_CREAM
```

Vanilla Ice Cream.

<br />

Constant Value: 35 (0x00000023)

## Public constructors

### VERSION_CODES

```
public VERSION_CODES ()
```

<br />

<br />