Getting the model name for a device in Bada

I am looking for an API call that will tell me which device the user has. For example: GT-S7250 or Wave M Is there an API for this?

+4
source share
1 answer

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.

+3
source

Source: https://habr.com/ru/post/1392164/


All Articles