Android 版本列表


 API等级1:  Android 1.0 

API等级2:  Android 1.1 Petit Four  花式小蛋糕

API等级3:  Android 1.5 Cupcake  纸杯蛋糕

API等级4:  Android 1.6 Donut  甜甜圈

API等级5:  Android 2.0 Éclair   松饼

API等级6:  Android 2.0.1 Éclair  松饼

API等级7:  Android 2.1 Éclair   松饼

API等级8:  Android 2.2 - 2.2.3 Froyo  冻酸奶

API等级9:  Android 2.3 - 2.3.2 Gingerbread  姜饼

API等级10:Android 2.3.3-2.3.7 Gingerbread   姜饼

API等级11:Android 3.0 Honeycomb 蜂巢

API等级12:Android 3.1 Honeycomb 蜂巢

API等级13:Android 3.2 Honeycomb 蜂巢

API等级14:Android 4.0 - 4.0.2 Ice Cream Sandwich  冰激凌三明治

API等级15:Android 4.0.3 - 4.0.4 Ice Cream Sandwich  冰激凌三明治

API等级16:Android 4.1 Jelly Bean  糖豆

API等级17:Android 4.2 Jelly Bean  糖豆

API等级18:Android 4.3 Jelly Bean  糖豆

API等级19:Android 4.4 KitKat 奇巧巧克力棒

API等级20 : Android 4.4W KitKat with wearable extensions 奇巧巧克力棒

API等级21:Android 5.0-5.0.2 Lollipop  棒棒糖

API等级22:Android 5.1 Lollipop_MR1  棒棒糖

API等级23:Android 6.0 Marshmallow 棉花糖

API等级24:Android N Nougat 牛轧糖


Constants

int BASE

October 2008: The original, first, version of Android.

int BASE_1_1

February 2009: First Android update, officially called 1.1.

int CUPCAKE

May 2009: Android 1.5.

int CUR_DEVELOPMENT

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

int DONUT

September 2009: Android 1.6.

int ECLAIR

November 2009: Android 2.0

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

int ECLAIR_0_1

December 2009: Android 2.0.1

int ECLAIR_MR1

January 2010: Android 2.1

int FROYO

June 2010: Android 2.2

int GINGERBREAD

November 2010: Android 2.3

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.

int GINGERBREAD_MR1

February 2011: Android 2.3.3.

int HONEYCOMB

February 2011: Android 3.0.

int HONEYCOMB_MR1

May 2011: Android 3.1.

int HONEYCOMB_MR2

June 2011: Android 3.2.

int ICE_CREAM_SANDWICH

October 2011: Android 4.0.

int ICE_CREAM_SANDWICH_MR1

December 2011: Android 4.0.3.

int JELLY_BEAN

June 2012: Android 4.1.

int JELLY_BEAN_MR1

November 2012: Android 4.2, Moar jelly beans!

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.

int JELLY_BEAN_MR2

July 2013: Android 4.3, the revenge of the beans.

int KITKAT

October 2013: Android 4.4, KitKat, another tasty treat.

int KITKAT_WATCH

June 2014: Android 4.4W.

int LOLLIPOP

November 2014: Lollipop.

int LOLLIPOP_MR1

March 2015: Lollipop with an extra sugar coating on the outside!

int M

M is for Marshmallow!

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

  • Runtime permissions.

int N

N is for ¯\_(ツ)_/¯.

Public constructors

Build.VERSION_CODES()

Inherited methods

From class java.lang.Object

Constants


BASE

Added in  API level 4
int BASE

October 2008: The original, first, version of Android. Yay!

Constant Value: 1 (0x00000001)

BASE_1_1

Added in  API level 4
int BASE_1_1

February 2009: First Android update, officially called 1.1.

Constant Value: 2 (0x00000002)

CUPCAKE

Added in  API level 4
int CUPCAKE

May 2009: Android 1.5.

Constant Value: 3 (0x00000003)

CUR_DEVELOPMENT

Added in  API level 4
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

Added in  API level 4
int DONUT

September 2009: Android 1.6.

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

  • They must explicitly request the 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 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 will use the new dark tab background design.

Constant Value: 4 (0x00000004)

ECLAIR

Added in  API level 5
int ECLAIR

November 2009: Android 2.0

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

  • The Service.onStartCommand function will return the new START_STICKY behavior instead of the old compatibility START_STICKY_COMPATIBILITY.
  • The 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 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.

Constant Value: 5 (0x00000005)

ECLAIR_0_1

Added in  API level 6
int ECLAIR_0_1

December 2009: Android 2.0.1

Constant Value: 6 (0x00000006)

ECLAIR_MR1

Added in  API level 7
int ECLAIR_MR1

January 2010: Android 2.1

Constant Value: 7 (0x00000007)

FROYO

Added in  API level 8
int FROYO

June 2010: Android 2.2

Constant Value: 8 (0x00000008)

GINGERBREAD

Added in  API level 9
int GINGERBREAD

November 2010: Android 2.3

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.

Constant Value: 9 (0x00000009)

GINGERBREAD_MR1

Added in  API level 10
int GINGERBREAD_MR1

February 2011: Android 2.3.3.

Constant Value: 10 (0x0000000a)

HONEYCOMB

Added in  API level 11
int HONEYCOMB

February 2011: Android 3.0.

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

  • The default theme for applications is now dark holographic: 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.
  • An application will crash if it does not call through to the super implementation of its 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() will not automatically reload the preferences if they have changed on storage, unless MODE_MULTI_PROCESS is used.
  • setMotionEventSplittingEnabled(boolean) will default to true.
  • FLAG_SPLIT_TOUCH is enabled by default on windows.
  • PopupWindow.isSplitTouchEnabled() will return true by default.
  • GridView and ListView will use View.setActivated for selected items if they do not implement Checkable.
  • Scroller will be constructed with "flywheel" behavior enabled by default.

Constant Value: 11 (0x0000000b)

HONEYCOMB_MR1

Added in  API level 12
int HONEYCOMB_MR1

May 2011: Android 3.1.

Constant Value: 12 (0x0000000c)

HONEYCOMB_MR2

Added in  API level 13
int HONEYCOMB_MR2

June 2011: Android 3.2.

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 or later; it had been 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 screenWidthDpscreenHeightDp, andsmallestScreenWidthDp. Supplying these in <supports-screens> as per requiresSmallestWidthDpcompatibleWidthLimitDp, andlargestWidthLimitDp 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 FEATURE_SCREEN_PORTRAIT and 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 will use the serial executor by default when calling execute(Params...).

  • ActivityInfo.configChanges will have the CONFIG_SCREEN_SIZE and 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.

Constant Value: 13 (0x0000000d)

ICE_CREAM_SANDWICH

Added in  API level 14
int ICE_CREAM_SANDWICH

October 2011: Android 4.0.

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 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: Theme_DeviceDefault. This may be the holo dark theme or a different dark theme defined by the specific device. The 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 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() will not automatically add in 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 will parse out the duration, fillBefore, fillAfter, repeatMode, and startOffset XML attributes that are defined.
  • ActionBar.setHomeButtonEnabled() is false by default.

Constant Value: 14 (0x0000000e)

ICE_CREAM_SANDWICH_MR1

Added in  API level 15
int ICE_CREAM_SANDWICH_MR1

December 2011: Android 4.0.3.

Constant Value: 15 (0x0000000f)

JELLY_BEAN

Added in  API level 16
int JELLY_BEAN

June 2012: Android 4.1.

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

Constant Value: 16 (0x00000010)

JELLY_BEAN_MR1

Added in  API level 17
int JELLY_BEAN_MR1

November 2012: Android 4.2, Moar jelly beans!

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

Constant Value: 17 (0x00000011)

JELLY_BEAN_MR2

Added in  API level 18
int JELLY_BEAN_MR2

July 2013: Android 4.3, the revenge of the beans.

Constant Value: 18 (0x00000012)

KITKAT

Added in  API level 19
int KITKAT

October 2013: Android 4.4, KitKat, another tasty treat.

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

  • The default result of PreferenceActivity.isValueFragment becomes false instead of true.
  • In 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 becomes interpreted as an inexact value, to give the system more flexibility in scheduling alarms.
  • Context.getSharedPreferences no longer allows a null name.
  • RelativeLayout changes to compute wrapped content margins correctly.
  • ActionBar's window content overlay is allowed to be drawn.
  • The READ_EXTERNAL_STORAGE permission is now always enforced.
  • Access to package-specific external storage directories belonging to the calling app no longer requires the READ_EXTERNAL_STORAGE orWRITE_EXTERNAL_STORAGE permissions.

Constant Value: 19 (0x00000013)

KITKAT_WATCH

Added in  API level 20
int KITKAT_WATCH

June 2014: Android 4.4W. KitKat for watches, snacks on the run.

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

  • AlertDialog might not have a default background if the theme does not specify one.

Constant Value: 20 (0x00000014)

LOLLIPOP

Added in  API level 21
int LOLLIPOP

November 2014: Lollipop. A flat one with beautiful shadows. But still tasty.

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

  • Context.bindService now requires an explicit Intent, and will throw an exception if given an implicit Intent.
  • Notification.Builder will not have the colors of their various notification elements adjusted to better match the new material design look.
  • 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 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 useLauncherApps to correctly populate its apps UI).
  • Calling Service.stopForeground with removeNotification false will modify the still posted notification so that it is no longer forced to be ongoing.
  • DreamService must require the BIND_DREAM_SERVICE permission to be usable.

Constant Value: 21 (0x00000015)

LOLLIPOP_MR1

Added in  API level 22
int LOLLIPOP_MR1

March 2015: Lollipop with an extra sugar coating on the outside!

Constant Value: 22 (0x00000016)

M

Added in  API level 23
int M

M is for Marshmallow!

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

Constant Value: 23 (0x00000017)

N

Added in  API level 24
int N

N is for ¯\_(ツ)_/¯.

Constant Value: 24 (0x00000018)

Public constructors


Build.VERSION_CODES

Added in  API level 4
Build.VERSION_CODES ()
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Android 新闻 24 小时列表是一个提供最新的 Android 相关新闻的列表Android 是一个流行的操作系统,许多人使用 Android 设备,因此 Android 相关的新闻非常重要。这个列表会持续更新,确保用户能够及时获取 Android 领域内最新的消息。 Android 新闻 24 小时列表包含了各种内容。它可能会报道关于最新的 Android 版本发布、更新和改进的信息。用户可以了解到新版本的功能和改变。此外,列表还可能包括关于最新的 Android 手机和平板电脑发布的报道,以及各种品牌和型号的设备的对比和评测。 Android 新闻 24 小时列表还可能报道与 Android 相关的应用程序和游戏的新闻。这些报道可能包括新上线的应用程序和游戏的介绍、功能和评价,让用户了解有哪些有趣和实用的应用程序和游戏可以使用。 此外,Android 新闻 24 小时列表也可能包含与 Android 安全性相关的报道。这些报道可以让用户了解最新的安全漏洞和威胁,以及如何保护自己的 Android 设备免受攻击。 Android 新闻 24 小时列表还可以提供与 Android 开发和编程相关的信息。这些报道可能包括最新的开发工具和技术、开发者大会和培训活动的报道,以及有关如何开始开发 Android 应用程序的指南。 总之,Android 新闻 24 小时列表提供了全面而及时的 Android 相关新闻,让用户能够紧跟 Android 领域内的最新动态。无论是普通用户、开发者还是 Android 爱好者,都能从中获取到有价值的信息,提高他们的 Android 使用和开发技能。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值