Android app for system API version number selection introduction

Source: Internet
Author: User

Reprint Please specify the source "http://blog.csdn.net/y150481863/article/details/41280045"

First of all, before we develop an application, especially an Android application, the first thing to consider is whether the system is running on Android version 2.3, or on a 4.0 system or a system that supports all Android versions.

With this decision, we need to do something about it and tell the system what version of the system is compatible with your current application, so the system decides if it will work and install your app successfully.

This is determined by the <uses-sdk> tag elements in Manifest.xml in Android project.

This label contains the following 3 properties:

android:minsdkversion --this property determines the minimum system version that your app can be compatible with, and a setting for this property must be set.

android:targetsdkversion -This property indicates that your current application is designed for a system version, meaning that there is no problem running on this system version. For mobile phones or other end devices, depending on the value of this attribute, it is decided whether to display some features and effects. Of course, the most direct impact for developers is that the APIs you use are based on this version, and the API above this targetsdkversion is used with warnings or error prompts.

android:maxsdkversion -This property determines the maximum number of versions your app can support, and systems that exceed this version will not be able to use your app.



For example, the above code can support the minimum system version number is 10, using the version number 16 of the system API.

For people who often talk about the phone is the android2.3 system or 4.0 of the system, or just out of the 5.0 system, where the 2.3, 4.0, 5.0 are only the version name. The version name 4.0 corresponds to the version number (API level) is 14.

A description of the version name and version number can be seen in this article: http://blog.csdn.net/y150481863/article/details/41249159


This knowledge point may not be a big problem, and the record is only known as the person who just got started.



Android app for system API version number selection introduction

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.