简体   繁体   English

如何获取手机中安装的android固件版本?

[英]how to get android firmware version installed in phone?

while developing an application how to get current operating system version installed in mobile phone? 在开发应用程序时如何获取手机中安装的当前操作系统版本?

for example, 例如,

1.5,2.1 etc.. 1.5,2.1等。

can any one guide me how to get it? 谁能指导我如何获得它?

any help would be appriciated. 任何帮助都会得到应用。

See android.os.Build.VERSION . 参见android.os.Build.VERSION SDK or SDK in contain the API version. SDK或SDK中包含API版本。 android.os.Build.VERSION_CODES contains the relevant constants. android.os.Build.VERSION_CODES包含相关的常量。

    String deviceSoftwareVersion = telephonyManager.getDeviceSoftwareVersion();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM