Get Device IMEI BB10 C++/QML

血红的双手。 提交于 2019-12-11 04:36:21

问题


Is there a way to get IMEI of BB10 using qml or cpp? I don't see any documentation for it.

https://developer.blackberry.com/html5/apis/blackberry.identity.html

This did not help me.


回答1:


There is HarwareInfo API for getting IMEI.

#include <bb/device/HardwareInfo>

QString HardwareInfo::imei()

You will need permission "read_device_identifying_information" to use this API.

And link device lib in pro file, LIBS += -lbbdevice



来源:https://stackoverflow.com/questions/18688063/get-device-imei-bb10-c-qml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!