Specifying Minimum System API Version

If your application requires a specific minimum version of the Android platform, you can specify that version as an API Level identifier in the application's manifest file. Doing so ensures that your application can only be installed on devices that are running a compatible version of the Android system.

To specify the minimum system version in the manifest, use this attribute:

• android:minSdkVersion — An integer value corresponding to the code version of the Android platform.

When preparing to install an application, the system checks the value of this attribute and compares it to the system version. If the android:minSdkVersion value is greater than the system version, the system aborts the installation of the application.

If you do not specify this attribute in your manifest, the system assumes that your application is compatible with all platform versions.

To specify a minimum platform version for your application, add a <uses-sdk> element as a child of <manifest>, then define the android:minSdkVersion as an attribute.

For more information, also see the Android System Image 1.1 Version Notes.

Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License. J-&

Site Terms of Service - Privacy Policy - Brand Guidelines

0 0

Post a comment