android - 如何查看安卓系统版本?

标签 android version system

有谁知道如何以编程方式检查系统版本(例如 1.02.2 等)?

最佳答案

使用示例:

if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD) {
     // only for gingerbread and newer versions
}

关于android - 如何查看安卓系统版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4322514/

相关文章:

android - 使用 ACTION_SEND 或 ACTION_SEND_MULTIPLE 发送图像和文本

c - execlp 给出中止陷阱 6

PHP 如何在 PayPal 购物车中使用 IPN?

android - java.lang.IllegalAccessError : Method 'void android. support.v4.content

android - 在 Android Studio 中启用 Proguard 后制作签名的 apk 时出错

java - 如何从资源目录中读取多个文件

tensorflow - 哪些 TensorFlow 和 CUDA 版本组合兼容?

operating-system - 如何判断 SP1 是否安装在 Windows Server 2008 R2 Standard 上?

Google Chrome 版本的 Windows 注册表位置

linux - Perl - 管道命令到另一个