Android version Issue

Source: Internet
Author: User


==================== Problem Description ====================
Let's do the API for Android.


It's 4.0 or 4.0.3.

Is it possible to run with 4.0 Android 2.3?
==================== Solution 1====================
Only 2.3 can let 4.0 run, not 4.0 let 2.3 run
==================== Solution 2====================
Can run, but some 4.0 of the API is not available in 2.3.
==================== Solution 3====================
In general, you can simply set up a compatible minimum API version and a maximum API version in the XML configuration file, such as setting minsdkversion= "8", which indicates the smallest Android version: Android 2.2, up-to-date;
One version of your choice means that you are using this version of the SDK API feature, and you need to be aware of the compatibility of some features of each version of the SDK with the screen resolution, such as some of the API methods and some of the obsolete API features, which require you to work in the code, such as :
int currentapiversion = Android.os.Build.VERSION.SDK_INT; if (currentapiversion >= Android.os.Build.VERSION_CODES. FROYO) {//compatible with this version of the method ...} else{//General version of the method}

==================== Solution 4====================
4 The API class that is useless to 4.0 features, and can run under 2.3.

Android version Issue

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.