Android <uses-sdk> Notes

Source: Internet
Author: User

In the Androidmanifest.xml will see <uses-sdk> figure, the complete uses-sdk is this appearance:

<USES-SDK android:minsdkversion="integer"
android:targetsdkversion="integer"
android:maxsdkversion="integer"/>

Where integer is the Android API level.

USES-SDK is for program compatibility, how is it compatible? It might be possible to guess from the names of three of children.

Minsdkversion: If the mobile phone or tablet API level is lower than the APK minsdkversion, the system cannot install the app.

Targetsdkversion:api level between Minsdkversion and Targetsdkversion can execute the program directly (no compatibility items need to be opened). If the mobile phone or tablet API level is larger than the program's targetsdkversion,android run environment, you need to simulate the behavior of the previous version API, which is called compatibility. How does a program developer determine this value? It is natural to test on the corresponding platform, the specific process is: Increment targetsdkversion, each increment test once.

Maxsdkversion: If the mobile phone or tablet API level is greater than maxsdkversion, the program cannot be installed or used. Google Docs says this subkey is not recommended because Android 2.0.1 does not check for this item, only Google Play will check it.

Android <uses-sdk> Notes

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.