Android version dynamic judgment

Source: Internet
Author: User
[Code][Java] Code
1 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
2      // Todo: if the current version is earlier than honeycomb, that is, version 3.0
3 }
[Code]View sourceprint?
01 Constants
02 int BASE    October
2008: The original, first, version of Android.
03 int BASE_1_1    February
2009: First Android update, officially called
1.1.
04 int CUPCAKE May
2009: Android 1.5.
05 int CUR_DEVELOPMENT Magic version number
for a current development build, which has not yet turned into an official release.
06 int DONUT   September
2009: Android 1.6.
07 int ECLAIR  November
2009: Android 2.0
08 Applications targeting this
or a later release will get these new
changes in behavior:
09  
10 The Service.onStartCommand function will
return the new
START_STICKY behavior instead of the old compatibility START_STICKY_COMPATIBILITY.
11 int ECLAIR_0_1  December
2009: Android 2.0.1
12 int ECLAIR_MR1  January
2010: Android 2.1
13 int FROYO   June
2010: Android 2.2
14 int GINGERBREAD November
2010: Android 2.3
15 Applications targeting this
or a later release will get these new
changes in behavior:
16  
17 The application's notification icons will be shown on the
new dark status bar background, so must be visible in
this situation.
18 int GINGERBREAD_MR1 February
2011: Android 2.3.3.
19 int HONEYCOMB   February
2011: Android 3.0.
20 int HONEYCOMB_MR1   May
2011: Android 3.1.
21 int HONEYCOMB_MR2   June
2011: Android 3.2.
22 int ICE_CREAM_SANDWICH  October
2011: Android 4.0.
23 int ICE_CREAM_SANDWICH_MR1  December
2011: Android 4.0.3.
24 int JELLY_BEAN  Android
4.1.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.