Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Android Development
Previous Page Home Next Page


<uses-sdk android:
minSdkVersion="integer" />
contained in:
Lets you express an application's compatibility with one or more versions of the Android platform, by means of an API Level integer. The API Level expressed by an application will be compared to the API Level of a given Android system, which may vary among different Android devices. To declare your application's minimum API Level compatibility, use the minSdkVersion attribute.

The default level is 1.

For more information on the API level, see the Specifying Minimum System API Version section of Versioning Your Applications.

An integer designating the minimum level of the Android API that's required for the application to run.

Despite its name, this attribute specifies the API Level, not the version number of the SDK (software development kit). The API Level is always a single integer; the SDK version may be split into major and minor components (such as 1.5). You cannot derive the API Level from the SDK version number (for example, it is not the same as the major version or the sum of the major and minor versions). To learn what the API Level is, check the notes that came with the SDK you're using.

Prior to installing an application, the Android system checks the value of this attribute and allows the installation only if the API Level is less than or equal to the API Level used by the system itself.

If you do not declare this attribute, then a value of "1" is assumed, which indicates that your application is compatible with all versions of Android. If your application is not universally compatible (for instance if it uses APIs introduced in Android 1.5) and you have not declared the proper minSdkVersion, then when installed on a system with a lower API Level, the application will crash during runtime. For this reason, be certain to declare the appropriate API Level in the minSdkVersion attribute.

introduced in:
API Level 1
Android Development
Previous Page Home Next Page

  Published under the terms fo the Apache 2.0 License Design by Interspire  

  Published under the terms fo the Apache 2.0 License Design by Interspire