随着Android版本的增多,在不同的版本中使用不同的设计是必须的,根据程序运行的版本来提供不同的功能.这涉及到如何在程序中判断Android系统的版本. 在Android api中的android.os.Build和android.os.Build.VERSION类中包含了Android版本信息. 可以使用该信息来判断设备的系统版本: public static final int SDK_VERSION_ECLAIR = 5;public static final int SDK_VERSI…
最新Android系统版本与API等级对应关系表 从Android官网拷过来的,方便查阅... 官网地址:https://developer.android.com/guide/topics/manifest/uses-sdk-element.html What is API Level? API Level is an integer value that uniquely identifies the framework API revision offered by a version o…