Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Visitor
Posts: 1
Registered: ‎05-10-2010
My Device: 9530
My Carrier: Verizon

How to get the software version with javaloader

We are trying to identify the device software version using “javaloader deviceinfo” , since we’d like to know the device software version before we load the java application. The “VM Version:” in reply to “javaloader deviceinfo” seems to be the place to check.

 

The problem is:

  1. The device with software version 4.7.1.61 returns “VM Vesrion: 0x407013d”
  2. Another device with software version 5.0.0.328 returns “VM Version: 0x5000148”

#1 seems that it uses “major(1 byte).minor(2 byte ).micro(2 byte).build(2 byte)”  format to express the software version.  

That is 4.07.01.3d (hex)  -> 4.7.1.61(dec).

 

But for #2, it uses at least 3 hex digits for the last part.

 That is 146(hex) -> 328(dec).

 

How can I determine the version field format?

Is it version dependent?

 

 

Thanks in advance,