如何检查的Android系统版本? [英] How can I check the system version of Android?
本文介绍了如何检查的Android系统版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道我可以检查系统版本(例如 1.0
, 2.2
等)编程?
Does anyone know how can I check the system version (e.g. 1.0
, 2.2
, etc.) programatically?
推荐答案
检查<一href="http://developer.android.com/reference/android/os/Build.VERSION.html"><$c$c>android.os.Build.VERSION$c$c>.
-
codeNAME
:目前开发codeNAME,或字符串REL如果这是一个发布版本 -
增量
:所采用的底层源代码控制重新present此版本的内部值 。
-
发布
:用户可见的版本字符串
CODENAME
: The current development codename, or the string "REL" if this is a release build.INCREMENTAL
: The internal value used by the underlying source control to represent this build.RELEASE
: The user-visible version string.
这篇关于如何检查的Android系统版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文