how can i get android device's platformId,deviceUser,deviceName,deviceModel, deviceOperatingSystem,deviceOSVersion from my program.
Edit: 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??
thanks
venu
Answer
Extending to what CommonsWare suggested, I think here's what you need:
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 : Constant Value: 4 (0x00000004)
- ECLAIR : Constant Value: 5 (0x00000005)
- ECLAIR_0_1 : Constant Value: 6 (0x00000006)
- ECLAIR_MR1 : Constant Value: 7 (0x00000007)
- FROYO : Constant Value: 8 (0x00000008)
- GINGERBREAD : Constant Value: 9 (0x00000009)
Build class: Information about the current build, extracted from system properties.
Build.MODEL
Build.PRODUCT
Build.VERSION:
Various version strings.
Build.VERSION.RELEASE
Build.VERSION.SDK_INT
No comments:
Post a Comment