How to select the system API version number for android apps

Source: Internet
Author: User

How to select the system API version number for android apps

 

First, before developing an application, especially an android application, we must first consider that the system runs on a system with android 2.3, or 4.0 systems or systems that support all android versions.

With this decision, we need to do something next. We need to tell the system what the system version is compatible with the current application, then the system determines whether your application can be installed effectively and successfully.

This is in Manifest. xml of the android project. Depends on the label element.

This tag contains the following three attributes:

Android: minSdkVersion-- This attribute determines the minimum system version that your application can be compatible with. In a single disk, this attribute must be set.

Android: targetSdkVersion-- This attribute indicates that your current application is developed and designed for a certain system version. That is to say, there is no problem in running this system version. For mobile phones or other terminal devices, the property value determines whether to display some features and effects. Of course, the most direct impact on developers is that the APIS you use are based on this version, and there will be warnings or error prompts when using the APIS higher than the targetSdkVersion.

Android: maxSdkVersion-- This attribute determines the maximum number of versions supported by your application. systems that exceed this version will not be able to use your application.

 

 

For example, the minimum version number supported in the code above is 10, and the system API with the version number 16 is used.

For mobile phones that people often talk about, are they Android 4.0 systems or 5.0 systems, or just 2.3 systems. Here, 4.0, 5.0, and are only version names. The version number (api level) corresponding to version 4.0 is 14.

See this article for introduction to version names and versions: http://blog.csdn.net/y150481863/article/details/41249159

 

This knowledge point may not be a big problem. It is recorded only as a beginner.

?? ??

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.