Androidmanifest.xml <uses-sdk> Nodes

Source: Internet
Author: User

Reference: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

<uses-sdk>
<uses-sdk> is a direct sub-node of <manifest> that informs the Android SDK compatibility range used by the system application.

Grammar:

<android:minsdkversion= "integer"    android:targetsdkversion= "Integer"    android:maxsdkversion= "integer"/>

Property:

Android:minsdkversion
The app is compatible to the smallest SDK version and will not install if the value is greater than the version of the user's phone system. If you do not specify this value, the default is 1. In the actual write code, the smaller the version to be compatible, the more version compatibility issues need to be addressed in the program


Android:targetsdkversion
Apply the best running SDK version. If default, the default equals Minsdkversion. If the operating system version is higher than Targetsdkversion, the system will find ways to backward backwards, using some of the older features. In summary, if the targetsdkversion is larger than the system version, the app is responsible for version compatibility, and if targetsdkversion is less than the system version, it is the system's responsibility to handle version compatibility.


Android:maxsdkversion
Apply the most compatible SDK version. Actually generally does not have the function, uses for the Android all is compatible with the old application, therefore does not need to fill.

Androidmanifest.xml <uses-sdk> Nodes

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.