Java documentation for android.os.Build.VERSION_CODES.GINGERBREAD. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. Applies to 产品版本(已过时) .NET ...
int currentVersion = android.os.Build.VERSION.SDK_INT; if(currentVersion == android.os.Build.VERSION_CODES.ECLAIR_MR1) { // 2.1 } else if(currentVersion == android.os.Build.VERSION_CODES.FROYO) { // 2.2 } else if(currentVersion == android.os.Build.VERSION_CODES.GINGERBREAD) {...
intcurrentVersion = android.os.Build.VERSION.SDK_INT; if(currentVersion == android.os.Build.VERSION_CODES.ECLAIR_MR1) { // 2.1 }elseif(currentVersion == android.os.Build.VERSION_CODES.FROYO) { // 2.2 }elseif(currentVersion == android.os.Build.VERSION_CODES.GINGERBREAD) { // 2.3 }else...
Build.VERSION.SDK_INT是系统的版本,Build.VERSION_CODES.GINGERBREAD是版本号。 到VERSION.SDK_INT不禁诧异,这是何物?! 看API的定义,如下: [java]view plaincopyprint? publicstaticfinalintSDK_INT Since: API Level 4 The user-visible SDK version of the framework; its possible values are defined in Buil...
VERSION_CODES.GINGERBREAD_MR1 为 Android 2.3.3 版本。 VERSION_CODES.HONEYCOMB 为 Android 3.0 版本。 VERSION_CODES.HONEYCOMB_MR1 为 Android 3.1 版本。 VERSION_CODES.HONEYCOMB_MR2 为 Android 3.2 版本。 VERSION_CODES.ICE_CREAM_SANDWICH 为 Android 4.0 版本。
Build.VERSION.SDK_INT是系统的版本,Build.VERSION_CODES.GINGERBREAD是版本号。 到VERSION.SDK_INT不禁诧异,这是何物?! 看API的定义,如下: [java]view plaincopyprint? publicstaticfinalintSDK_INT Since: API Level 4 The user-visible SDK version of the framework; its possible values are defined in Buil...
Build.VERSION_CODES已公布的Android版本号BASE = 1 BASE_1_1 = 2 CUPCAKE = 3 CUR_DEVELOPMENT = 10000 DONUT = 4 ECLAIR = 5 ECLAIR_0_1 = 6 ECLAIR_MR1 = 7 FROYO = 8 GINGERBREAD = 9 GINGERBREAD_MR1 = 10 HONEYCOMB = 11 HONEYCOMB_MR1 = 12 ...
GINGERBREAD_MR1 February 2011: Android 2.3.3. HONEYCOMB February 2011: Android 3.0. HONEYCOMB_MR1 May 2011: Android 3.1. HONEYCOMB_MR2 June 2011: Android 3.2. ICE_CREAM_SANDWICH Android 4.0. 二、关于在获取系统信息的使用 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2)对比应用...
Enumeration of the currently known SDK version codes.C# Kopiraj [Android.Runtime.Register("android/os/Build$VERSION_CODES", DoNotGenerateAcw=true)] public class Build.VERSION_CODES : Java.Lang.ObjectInheritance Object Object Build.VERSION_CODES ...
Magic version number for a current development build, which has not yet turned into an official release. Donut 4 September 2009: Android 1.6. Eclair 5 Eclair01 6 EclairMr1 7 Froyo 8 Gingerbread 9 GingerbreadMr1 10 February 2011: Android 2.3.3. Honeycomb 11 HoneycombMr1 12 May 201...