如何获得Android设备性能 [英] How to get android device properties
问题描述
我怎样才能Android设备的platformId,deviceUser,设备名称,deviceModel,deviceOperatingSystem,deviceOSVersion从我的节目。
how can i get android device's platformId,deviceUser,deviceName,deviceModel, deviceOperatingSystem,deviceOSVersion from my program.
编辑:我已经使用了build类,得到了设备ID,型号和用户,但对我的要求,我需要设备操作系统,操作系统版本和平台id.so我怎样才能让他们??
i have already used that Build class and got device id, model and user but for my requirement i need device OS, OS version and platform id.so how can i get them??
感谢
VENU
thanks
venu
推荐答案
扩展到什么CommonsWare的建议,我觉得这里就是你需要:
Extending to what CommonsWare suggested, I think here's what you need:
Build.VERSION_ codeS :目前已知的SDK版本codeS计数。这些是可以在SDK中可以找到的值。版本号单调递增,每个官方平台发布。
Build.VERSION_CODES: Enumeration of the currently known SDK version codes. These are the values that can be found in SDK. Version numbers increment monotonically with each official platform release.
- DONUT:常量值:4(0x00000004)
- ECLAIR:常量值:5(0x00000005)
- ECLAIR_0_1:常量值:6(0x00000006)
- ECLAIR_MR1:常数值:7(0x00000007)
- 升级Froyo:常数值:8(0x00000008)
- 姜饼:常数值:9(0x00000009)
打造一流:关于当前构建,从系统中提取属性。
Build.MODEL
Build.PRODUCT
Build class: Information about the current build, extracted from system properties.
Build.MODEL
Build.PRODUCT
Build.VERSION :
各种版本字符串。
Build.VERSION.RELEASE
Build.VERSION.SDK_INT
Build.VERSION:
Various version strings.
Build.VERSION.RELEASE
Build.VERSION.SDK_INT
这篇关于如何获得Android设备性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!