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
Developer
Posts: 22
Registered: ‎08-22-2008
My Device: Bold
Accepted Solution

Get OSVersion on pre 4.3 devices and post 4.3 devices

On post 4.3 devices I would use DeviceInfo.getSoftwareVersion() to get the device firmware version.

This function is not available on devices with firmware before Version 4.3.

So I need a function, I can execute on devices with Firmware 4.x and later in order to properly find out if the device is 4.3 or later.

For devices with Firmware Version under 4.3 I will give a message, that this firmware Version is not supported by my application.

 

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Get OSVersion on pre 4.3 devices and post 4.3 devices

You can invent your own - just a few lines of code.

 

- use ApplicationManager to retrieve the list of visible applications

- retrieve the version from a know RIM application (they're all the same). Something like "net_rim_bb_ribbon_app"

 

See the API docs for

 

ApplicationManager

ApplicationDescriptor

 

 

 

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Get OSVersion on pre 4.3 devices and post 4.3 devices

Rather than invent your own, you could always copy this code....

 

How To - Retrieve the BlackBerry Device Software version
Article Number: DB-00150

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To_...