Android SDK Level

来源:互联网 发布:手机淘宝开店在哪里 编辑:程序博客网 时间:2024/05/16 23:49
minSdkVersion (lowest possible) <= targetSdkVersion == compileSdkVersion (latest SDK)
用较低minSdkVersion来覆盖最大的人群,用最新的SDK设置target和compile来获得最好的外观和行为.


targetSdkVersion is the main way Android provides forward compatibility.
只要APK targetSdkVersion不变,即使这个APK安装在新Android系统上,其行为还是保持老系统上的行为,保证了系统对老应用的前向兼容性。
APK在调用Android API (current 23)时,系统会检查APK targetSdkVersion(19),如果小于19,就还是按照老的19行为,否则执行新的23行为。


参考资料
http://blog.csdn.net/aa7704/article/details/50596998
http://www.open-open.com/lib/view/open1453252891870.html
http://blog.csdn.net/edisonlg/article/details/7855898