New Android releases are coming out, now, in the beginning its a good time to start thinking about compatibility between this releases. How do we know if our application will run in a 1.1 device, if we work with 1.5 SDK? With the new compatibility system, we can indicate the minimum version of the Android system required to run the application.
This new SDK version has been identified like the “Level 3 API”, we consider the 1.0 → Level 1, and the 1.1 → Level 2. With this nomenclature, we always know which API we are talking about.
How can we point an application as a API level compatible? You have to add a android:minSdKVersion attribute to the manifest file of your App.
<manifest>
…
<uses-sdk android:minSdkVersion="3" />
…
</manifest>
This way, you are telling the application that its compatible only with the latest version, the 1.5.
We have to be very careful with the AVD we create to test the application, remember that we can create an Emulator with the SDK we want. Have a look to the first article of the series.
How-to work with the new Google Android SDK 1.5 "Cupcake"