AndroidManifest. xml & lt; uses-sdk & gt; node, androidusessdk

Source: Internet
Author: User

<Uses-sdk> node of AndroidManifest. xml, androidusessdk

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

<Uses-sdk>
<Uses-sdk> is a direct sub-node of <manifest> to inform the system application of the Android SDK compatibility range.

Syntax:

<uses-sdk android:minSdkVersion="integer"    android:targetSdkVersion="integer"    android:maxSdkVersion="integer" />

 

Attribute:

Android: minSdkVersion
The application is compatible with the minimum SDK version. If the value is greater than the version of your mobile phone system, it cannot be installed. If this value is not specified, the default value is 1. In actual code writing, the smaller the version to be compatible, the more version compatibility issues that need to be addressed in the program


Android: targetSdkVersion
The best SDK version for running the application. If default, the default value is minSdkVersion. If the running system version is later than targetSdkVersion, the system will try to be backward compatible and use the features of earlier versions. All in all, if targetSdkVersion is later than the system version, the application is responsible for version compatibility. If targetSdkVersion is earlier than the system version, the system is responsible for version compatibility.


Android: maxSdkVersion
The most compatible SDK version of the application. In practice, it is generally useless. It is compatible with old applications for Android, so it is not required.


How can I add androidpermissionCAMERA permission to AndroidManifestxml during Android development ?......

Permissions are generally written after the sdk version and before the application tag. For example:
<Uses-sdk android: minSdkVersion = "10"/>

<Uses-permission android: name = "android. permission. CALL_PHONE"> </uses-permission>
<Application android: icon = "@ drawable/icon" android: label = "@ string/app_name">

What is AndroidManifestxml?

The file name is an xml file. The file name is called AndroidManifest. xml in the text format of... notepad. The content in... is some app configuration.
This section indicates that there is a section in AndroidManifest. xml.
<Manifest xmlns: android = "schemas.android.com/apk/res/android"...>
<Uses-sdk android: minSdkVersion = "8" android: targetSdkVersion = "17"/>
...
</Manifest>
Write the sdk version number required by the current app... the minimum requirement is ver8... the current target version is ver17 ......

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.