Getting the Model Name of a device in Bada 2.0

Getting the model name of a device in Bada 2.0 doesn’t have anything in the SDK documentation but can be accessed like this:

#include <FSysSystemInfo.h>

String deviceModel;
Osp::System::SystemInfo::GetValue(L”ModelName”, deviceModel);
AppLog(“Model Name %S”, deviceModel.GetPointer());

Also, remember to set the correct privilege in the manifest.xml


It’s a bit worrisome that the SystemInfo keys don’t list “ModelName” as a value key. Hopefully there won’t be any breaking changes.