minsdkversion and targetsdkversion

Here is some very early notes on API levels in Android

Here is a typical advice as what you need to do for your app for each new Android release


Change targetSDKVersion to the latest version
compile it
test it
update it in the store

Here is what is the meaning of targetSDKVersion

minSDKVersion is self explanatory

Say you have an app api level 5 on a device. And further say you didnt explicitly say what it's target sdk is. then the target sdk is same as the minsdk which could be 5.

Say if that device is upgraded to API level 11. Then Android will try to give your app as close an environment as possible to that old API level, that default theme for that version etc.

But if you tested it on API level 14 and mentioned the target as 14 then Android will not further optimize that "5" app and assume it will work well in the new default theme.

Search for: minsdkversion and targetsdkversion

As per the recommendation the target sdk should always point to the latest SDK

Here is Androids recommendation on supporting multiple versions

Here is a nice document on API levels from Android

After compiling your application, you should make sure to test it on the platform specified in the application's android:minSdkVersion attribute. To do so, create an AVD that uses the platform version required by your application. Additionally, to ensure forward-compatibility, you should run and test the application on all platforms that use a higher API Level than that used by your application.