Android | Minimum Required SDK, Target SDK, Compile With

While creating a new project you would have seen that we need to define the following 3. Here is a detailed explanation of each of them.

Minimum Required SDK - As we know, Android typically does one major release a year. And with every version, Android introduces some new features. Now minimum required SDK defines what is the earliest SDK that you want your application to be compatible with. For example, if you define your Minimum Required SDK as Froyo, then a feature which was introduced in Icecream Sandwich may not work, in which case, you have to handle it specifically how it should behave on a phone which is running on Pre Icecream Sandwich Android Version.

To take a decision on this, please visit the following link to know what percentage of mobile devices are running on which version of Android.

https://developer.android.com/about/dashboards/index.html

Based on this, you can take a decision what your Minimum Required SDK is. for example, Froyo and Gingerbread combined constitutes only 10.4% of the devices (As of Nov 2014). If you are ok with leaving these devices out, then we can go ahead with Icecream Sandwich as Minimum Required SDK.

Target SDK - This is the highest Android SDK version for which you have tested your app and it is working fine. Mind it, when android releases a new version, it may happen that your application stops working. So you need to retest with every android release and check that your app is working fine.

Compile With - Here you have to define the Android SDK version with which you will compile your app code.



No comments:

Post a Comment