07-28-2014 01:39 PM
With all the proliferation of new BB10 devices, all with different physical characteristics, surely there must be an easy way to determine what physical device type an app is running on, at run time. Dashed if I can find it, though, and no amout of searching through the board messages or SDK docs seems to give me any clue.
Can someone please tell me how you do this, either in QML or C++.
Solved! Go to Solution.
07-28-2014 02:39 PM
The HardwareInfo class will get you that information. Here's an example and what you'll see.
bb::device::HardwareInfo* hw = new bb::device::HardwareInfo(this); qDebug() << "Model Name: " << hw->modelName(); qDebug() << "Model Number ID: " << hw->modelNumber();
Model Name: "Z30" Model Number ID: "STA100-1"