-
-
android:targetSdkVersion
-
An integer designating, the API level, the application targets. If not set, the default value equals this given to
minSdkVersion.
This attribute informs the system is tested against the target version and the system should not enable any COM Patibility behaviors to maintain your app ' s forward-compatibility with the target version. The application is still able-to-run on older versions minSdkVersion .
As Android evolves with the new version, some behaviors and even appearances might change. However, if the API level of the platform are higher than the version declared by your app ' s targetsdkversion , The system may enable compatibility behaviors to ensure this your app continues to work the the-the-you expect. You can disable such compatibility behaviors by specifying targetsdkversion to match the API level of the PLA Tform on which it ' s running. For example, setting this value to "one" or higher allows the system to apply a new default theme (Holo) to your app when r Unning on Android 3.0 or higher and also disables screens compatibility mode when running on larger screens (because Suppor T-API level one implicitly supports larger screens).
There is many compatibility behaviors that the system could enable based on the value of you set for this attribute. Several of these behaviors is described by the corresponding platform versions in the Build.VERSION_CODES reference.
To maintain your application along for Android release, you should increase the value of this attribute to match the Latest API level, then thoroughly test your application on the corresponding platform version.
Introduced IN:API level 4
"Mobile development" android:targetsdkversion