首页 > 系统 > Android > 正文

Android获取手机系统版本等信息的方法

2020-04-11 11:37:13
字体:
来源:转载
供稿:网友

本文实例讲述了Android获取手机系统版本等信息的方法。分享给大家供大家参考。具体如下:

String phoneInfo = "Product: " + android.os.Build.PRODUCT;phoneInfo += ", CPU_ABI: " + android.os.Build.CPU_ABI;phoneInfo += ", TAGS: " + android.os.Build.TAGS;phoneInfo += ", VERSION_CODES.BASE: " + android.os.Build.VERSION_CODES.BASE;phoneInfo += ", MODEL: " + android.os.Build.MODEL;phoneInfo += ", SDK: " + android.os.Build.VERSION.SDK;phoneInfo += ", VERSION.RELEASE: " + android.os.Build.VERSION.RELEASE;phoneInfo += ", DEVICE: " + android.os.Build.DEVICE;phoneInfo += ", DISPLAY: " + android.os.Build.DISPLAY;phoneInfo += ", BRAND: " + android.os.Build.BRAND;phoneInfo += ", BOARD: " + android.os.Build.BOARD;phoneInfo += ", FINGERPRINT: " + android.os.Build.FINGERPRINT;phoneInfo += ", ID: " + android.os.Build.ID;phoneInfo += ", MANUFACTURER: " + android.os.Build.MANUFACTURER;phoneInfo += ", USER: " + android.os.Build.USER;TextView t = (TextView) findViewById(R.id.main_phoneinfo);t.setText(phoneInfo);

希望本文所述对大家的Android程序设计有所帮助。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表