Android设备的信息 [英] Android device information

查看:145
本文介绍了Android设备的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有编程方式,提取关于当前的Andr​​oid设备的信息的API?例如,像模型,操作系统的属性等。

Is there an API for programmatically extracting information regarding the current Android device? For example, properties like "model", "OS" etc.

这是内部监督办公室 UIDevice 类和实例的属性模拟。

This would be an analogue of iOS's UIDevice class and instance properties.

推荐答案

您可以使用类机器人。 os.Build 来获得大部分的设备信息。

You can use the class android.os.Build to get most of the device information.

例如:

String myDeviceModel = android.os.Build.MODEL;

这篇关于Android设备的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆