Level of the platform on which it's running. You can disable such compatibilityīehaviors by specifying targetSdkVersion to match the API However, if the API level of the platform is higher than the version declared by your app's targetSdkVersion, the system may enable compatibility behaviors to ensure that your appĬontinues to work the way you expect.
The application is still able to run on older versions (down to minSdkVersion).Īs Android evolves with each new version, some behaviors and even appearances might change. System should not enable any compatibility behaviors to maintain your app's forward-compatibility
This attribute informs the system that you have tested against the target version and the Value equals that given to minSdkVersion. android:targetSdkVersion An integer designating the API Level that the application targets. This reason, be certain to declare the appropriate API Level in the
Will crash during runtime when attempting to access the unavailable APIs. Then when installed on a system with an API Level less than 3, the application In API Level 3) and you have not declared the proper minSdkVersion, Not compatible with all versions (for instance, it uses APIs introduced You should always declare this attribute.Īttribute, the system assumes a default value of "1", which indicates that yourĪpplication is compatible with all versions of Android. The application if the system's API Level is lower than the value specified in The Android system will prevent the user from installing Major version or the sum of the major and minor versions).Īttributes: android:minSdkVersion An integer designating the minimum API Level requiredįor the application to run. Its associated Android version number (for example, it is not the same as the The API Level is always a single integer. The version number of the SDK (software development kit) or Android platform. The API Level expressed by an application will be compared to theĪPI Level of a given Android system, which may vary among different Android devices.ĭespite its name, this element is used to specify the API Level, not Lets you express an application's compatibility with one or more versions of the Android platform,īy means of an API Level integer.
Before setting theseĪttributes, make sure that you understand That do not meet its platform version requirements. Attributes declared in your app manifest to filter your app from devices