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.
?? ??