先附上判断android SDK版本是否大于某个版本的判断方法:

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {     //TODO }

 

Code name Version API level  
(no code name) 1.0 API level 1  
(no code name) 1.1 API level 2 2008年9月
Cupcake 1.5 API level 3, NDK 1  Cupcake(纸杯蛋糕):2009年4月30日发布
Donut 1.6 API level 4, NDK 2 Donut(甜甜圈):2009年9月15日发布
Eclair 2.0 API level 5 Eclair( 松饼):2009年10月26日发布
Eclair 2.0.1 API level 6  
Eclair 2.1 API level 7, NDK 3  
Froyo 2.2.x API level 8, NDK 4 Froyo(冻酸奶):2010年5月20日发布
Gingerbread 2.3 - 2.3.2 API level 9, NDK 5 Gingerbread(姜饼) :2010年12月7日发布
Gingerbread 2.3.3 - 2.3.7 API level 10  
Honeycomb 3.0 API level 11  Honeycomb(蜂巢):2011年2月2日发布
Honeycomb 3.1 API level 12, NDK 6  
Honeycomb 3.2.x API level 13  
Ice Cream Sandwich 4.0.1 - 4.0.2 API level 14, NDK 7 Ice Cream Sandwich(冰激凌三明治):2011年10月19日在香港发布
Ice Cream Sandwich 4.0.3 - 4.0.4 API level 15, NDK 8  
Jelly Bean 4.1.x API level 16 Jelly Bean(果冻豆):2012年6月28日发布
Jelly Bean 4.2.x API level 17  
Jelly Bean 4.3.x API level 18  
KitKat 4.4 - 4.4.4 API level 19 KitKat(奇巧巧克力): 2013年11月01日正式发布
KitKat Watch 4.4W API level 20  
Lollipop 5.0 API level 21 Lollipop(棒棒糖):2014年10月15日发布
Lollipop 5.1 API level 22  
Marshmallow 6.0 API level 23 Marshmallow(棉花糖):2015年9月30日发布
Nougat 7.0 API level 24 Nougat(牛轧糖):2016年8月22日发布
Nougat 7.1.1 API level 25  
Oreo 8.0 API level 26 Oreo(奥利奥):2017 年 8 月 22 日发布
Oreo 8.1 API level 27  
Pie 9.0 API level 28 Pie(Pistachio Ice Cream,开心果冰淇淋):2018 年 8 月 7 日发布

 

未完待续

更多相关文章

  1. Android系统更新历史(系统和名称)
  2. 就在10/19!Android 4.0 冰淇淋三明治正式亮相
  3. Archos G9 平板將在 2012 年「前三月」得到 Ice Cream Sandwich
  4. 最新消息:Android 4.0新增功能
  5. Android SDK 版本的简称
  6. android各个版本代号
  7. 谷歌 Android 3.0计划四季度推出:代号姜饼
  8. Android 版本及别名
  9. android 各个版本介绍(截止2017年)

随机推荐

  1. Android加载html代码和文件
  2. IntentService使用、原理
  3. Android(安卓)Studio编译提示警告xxx已过
  4. android Material Design Toolbar
  5. 分享Android(安卓)CellLocation源码,基于R
  6. Android中ContentValues用法
  7. Android(安卓)Animation学习笔记
  8. 初级学习android的相关准备工作和学习的
  9. 由sqlite在手机上的存储位置,引发的onCrea
  10. Eclipse快捷键设置(转载)