Minsdkversion and Targetsdkversion believe that a lot of people do not understand, I also read a lot on the internet on the difference between the articles, feeling said is very vague, until I saw in StackOverflow Android Min SDK Version vs. Target SDK version After this article, I finally figured out how to set up Minsdkversion and targetsdkversion, and now I'll share it with you.
In short, the purpose of this article is to differentiate between MINSDK and TARGETSDK, which is equivalent to a range, you can use the latest APIs in TARGETSDK and the coolest new features, but you have to backward backwards to the MINSDK, Ensure that the devices within this range can run your app properly. In other words, you want to use the new features that Android has just introduced, but this is not necessary for your app, so you can set TARGETSDK as the SDK version you want to use with the new features, MINSDK set to a low version to ensure everyone can use your app.
For example: If you want to add a lot of gesture to your app (introduced in SDK 7), however, these gestures can be replaced by a button or menu, in which case gesture manipulation is an extra bonus, not a required function. So you need to set the TARGETSDK to 7 and set the MINSDK to 3 (for example, no one is still using the same old device now) so even users using the old device can use your app. Then all you have to do is to judge the version in the code, if the version is greater than or equal to 7 use gesture, less than 7 version of the use of button, etc., so that the use of the new phone users can experience the cool new features of your app.
Another example: If you want to add Android 5.0 material Design to your project, Some users may upgrade to 5.0 and use to your new features, and some users of the phone hardware is too old, do not support upgrading to 5.0, unless they change the new phone, then you will be compatible with them, do not lose this part of the user, so that your targetsdk set to 21,MINSDK can be set to 8
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Thoroughly understand how to set minsdkversion and Targetsdkversion