如何在Android中以编程方式检测移动设备制造商并进行建模? [英] How to detect a mobile device manufacturer and model programmatically in Android?
问题描述
我想查找手机的设备规格,例如设备制造商,型号(可能是设备中传感器的类型,wifi芯片组等).我想以编程方式获取设备的制造商/型号(例如Samsung GT-I9100,即Galaxy S2).安装应用程序时,Google Play中也会使用制造商/型号编号.我想使用此信息在与硬件相关的应用程序中进行一些配置更改(例如,功率测量).
I want to find device specification of a mobile phone for examples, the device manufacturer, model no ( and may be types of sensors in the device, wifi chipset etc..). I want to get the device manufacture/model number (eg. Samsung GT-I9100 i.e Galaxy S2) programmatically. The manufacture/model number is also used in Google Play when installing an app. I want to use this information to make some configuration changes in my hardware dependent app (for eg. power measurement).
推荐答案
您将获得以下信息:
String deviceName = android.os.Build.MODEL;
String deviceMan = android.os.Build.MANUFACTURER;
For more other device details, Please refer this document: android.os.Build
这篇关于如何在Android中以编程方式检测移动设备制造商并进行建模?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!