是否有编程方式,提取关于当前的Android设备的信息的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;