获取设备IMEI BB10 C ++/QML [英] Get Device IMEI BB10 C++/QML
本文介绍了获取设备IMEI BB10 C ++/QML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用qml或cpp获取BB10的IMEI?我没有任何文档.
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
这对我没有帮助.
推荐答案
有 HarwareInfo 用于获取IMEI的API.
There is HarwareInfo API for getting IMEI.
#include <bb/device/HardwareInfo>
QString HardwareInfo::imei()
您需要获得权限"read_device_identifying_information"
才能使用此API.
You will need permission "read_device_identifying_information"
to use this API.
并在pro文件LIBS += -lbbdevice
这篇关于获取设备IMEI BB10 C ++/QML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文