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

Native Development

Posts: 15
Registered: ‎12-12-2013
My Device: Z10
My Carrier: Lebera
Accepted Solution

Get device os version



How can I get device os verson and device name?


Thanks in advance.

Posts: 61
Registered: ‎10-16-2013
My Device: Z10
My Carrier: vodaphone

Re: Get device os version

Is this what you are lookin for?


QString deviceOsVersion() {
PlatformInfo platformInfo;
QString osVersion = "" ;
osVersion = platformInfo.osVersion() ;
return osVersion ;

QString deviceModel() {
HardwareInfo hardwareInfo ;
QString modelName = "" ;
modelName = hardwareInfo.modelName() ;
return modelName ;

Posts: 93
Registered: ‎05-31-2012
My Device: BlackBerry Playbook
My Carrier: Bell

Re: Get device os version

Any NDK equivalent not requiring Qt?