PDA

View Full Version : Help Platform Version -> O.S. Version


fabius
09-20-2005, 04:34 AM
By DeviceInfo.getPlatformVersion(),
I execute those test:

JDE 4.0.2: 2.2.0.13
Device 7230 con 4.0: 1.6.1.48
Simulator 4.0.0.185 (all): 2.1.0.91
Simulator 3.8.0.145 (all): 2.1.0.74

But I need to read O.S. on device,
e.g. 4.0.2
How do I associate O.S. with platform version?

Thanks for any suggestion,
fabio

phil_doyle
09-20-2005, 08:33 PM
did you try getOSVersion() that is found in the DeviceInfo class?

public static int getOSVersion()
Deprecated. This function attempts to pack the String returned by getPlatformVersion() into the format specified above. If it is unsuccessful, it will return 0. Please use getPlatformVersion() instead.
Retrieves the OS version.

Returns:
OS version in a 4 byte packet. You should interpret this value on a per-byte basis. Thus, read the returned integer 33557790 as 0x02 00 0D 1E in hex, which is 2.0.13.30 in decimal.

DaHunter
09-22-2005, 01:25 PM
Platform version and OS version are the same thing. The 4.0.2 is the Java application version. See the link below on how to get it.

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800332/800620/How_to__-_Get_the_'version'_of_the_device_code.html?nodeid=800529&vernum=2

DaHunter