问题
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