Android 系统的名字 及 版本和api基本对应关系 及 代码获取


Android 1.5:Cupcake(杯子蛋糕)

Android 1.6:Donut(甜甜圈)
Android 2.0 / 2.1:Eclair(闪电泡芙)
Android 2.2:Froyo(冷冻忧格)
Android 2.3:Gingerbread(姜饼)

Android 3.0:Honeycomb(蜂巢)

http://source.android.com/source/build-numbers.html

Code name Version API level
(no code name) 1.0 API level 1
(no code name) 1.1 API level 2
Cupcake 1.5 API level 3, NDK 1
Donut 1.6 API level 4, NDK 2
Eclair 2.0 API level 5
Eclair 2.0.1 API level 6
Eclair 2.1 API level 7, NDK 3
Froyo 2.2.x API level 8, NDK 4
Gingerbread 2.3 - 2.3.2 API level 9, NDK 5
Gingerbread 2.3.3 - 2.3.7 API level 10
Honeycomb 3.0 API level 11
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 4.0.3 - 4.0.4 API level 15, NDK 8
Jelly Bean 4.1.x API level 16
Jelly Bean 4.2.x API level 17
Jelly Bean 4.3.x API level 18
KitKat 4.4 - 4.4.2 API level 19

http://www.cnblogs.com/hope250/archive/2011/04/04/2005409.html


String phoneInfo = "Product: " + android.os.Build.PRODUCT;
        phoneInfo 
+= ", CPU_ABI: " + android.os.Build.CPU_ABI;
        phoneInfo 
+= ", TAGS: " + android.os.Build.TAGS;
        phoneInfo 
+= ", VERSION_CODES.BASE: " + android.os.Build.VERSION_CODES.BASE;
        phoneInfo 
+= ", MODEL: " + android.os.Build.MODEL;
        phoneInfo 
+= ", SDK: " + android.os.Build.VERSION.SDK;
        phoneInfo 
+= ", VERSION.RELEASE: " + android.os.Build.VERSION.RELEASE;
        phoneInfo 
+= ", DEVICE: " + android.os.Build.DEVICE;
        phoneInfo 
+= ", DISPLAY: " + android.os.Build.DISPLAY;
        phoneInfo 
+= ", BRAND: " + android.os.Build.BRAND;
        phoneInfo 
+= ", BOARD: " + android.os.Build.BOARD;
        phoneInfo 
+= ", FINGERPRINT: " + android.os.Build.FINGERPRINT;
        phoneInfo 
+= ", ID: " + android.os.Build.ID;
        phoneInfo 
+= ", MANUFACTURER: " + android.os.Build.MANUFACTURER;
        phoneInfo 
+= ", USER: " + android.os.Build.USER;
        
// Toast.makeText(this, phoneInfo, Toast.LENGTH_LONG).show();
        TextView t = (TextView) findViewById(R.id.main_phoneinfo);
        t.setText(phoneInfo);

你可能感兴趣的:(Android 系统的名字 及 版本和api基本对应关系 及 代码获取)