android:minsdkversion--This property determines the minimum system version that your app can be compatible with, and one disk condition is that 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. 1, about the SDK backwards compatibility, meaning that the high version is compatible with the low version, the application with the lower version of the SDK can run normally on the phone of the high version SDK, and the higher version of the SDK app will not run on the lower version of the phone? 2, how does the application developed using the higher version of the SDK work properly on the lower version of the phone? 1) in the program to determine the SDK version, and then write different code. (see next three)2) to import support-in your app projectv4 or V7 package, use the new version of the SDK feature. (see next four) third, for the application of better compatibility, we can use the high version of the SDK to develop the application, and in the program runtime (runtime) on the platform to run the application judgment, the old platform using the old API, and the new platform can use the new API, which can improve the software compatibility better. Reference: http://blog.csdn.net/leichelle/article/details/7988561Check system version at runtime (checks the version of systems at software Runtime) Android provides a unique code forEach platform versioninchThe Build constantsclass. Use these codes within your app to build conditions that ensure the code thatdepends on higher API levels isexecuted those APIs is available on the system.Private voidSetupactionbar () {//Make sure we ' re running on honeycomb or higher to use ActionBar APIs if(Build.VERSION.SDK_INT >=Build.version_codes. Honeycomb) {ActionBar ActionBar=Getactionbar (); Actionbar.setdisplayhomeasupenabled (true); The}}android API has always been a high-version compatible low version. such as API-8(Android2.2) must be compatible with api-4(Android1.6but instead, you build an APK using the 2.2 platform version, and if you want to run on 1.6, you need to do backwards compatibility. Android Support-xx is Google's official backwards-compatible package. As the name suggests, it helps the build program to be backwards compatible to version 1.6. But it's not everything, and it's limited. Google offers Android Supportlibrary Package series of packages to ensure the compatibility of the development of high-version SDK, that is, when we use 4.x development, in the 1.6 version, you can use a high version of some features, such as Fragement,viewpager, below, briefly explain the differences between these versions: Android SUPPORTV4: This package is designed to take care of 1.6 and later, this package is the most widely used, Eclipse new project, when the default comes with. Androidsupport V7: This package is designed to take care of 2.1 and later versions, but does not include lower, so if 1 is not considered.6, we can add this package, also note that V7 is to rely on V4 This package, that is, two to be included at the same time. Androidsupport V13: This package is designed to android3.2 and later, generally we are not used, flat-panel development can be used.
Android SDK version and compatibility issues