Obtaining the device model name in Bada 2.0 does not have anything in the SDK documentation, but can be accessed as follows:
#include <FSysSystemInfo.h> String deviceModel; Osp::System::SystemInfo::GetValue(L"ModelName", deviceModel); AppLog("Model Name %S", deviceModel.GetPointer());
Also do not forget to set the correct privilege in the manifest.xml file
<Privilege> <Name>SYSTEM_SERVICE</Name> </Privilege>
He is a little worried that the SystemInfo keys do not display "ModelName" as the value key. I hope that there will be no violations.
source share