IMEI Number In bb 10 Cascades

2019-08-07 20:03发布

I want to get the imei number In bb 10 cascades.In that path, I need to to add

  using namespace bb::data;   
  #include <bb/device/HardwareInfo> 

I have Also Included

     LIBS += -lbbpim
     LIBS += -lbbsystem
     LIBS += -lbbdevice
     LIBS += -lbbdata

files to my project.pro file !!! but I am getting Error message like...

- expected namespace-name before ';' token

- 'data' is not a namespace-name

I want to know why i am getting this error ,how to resolve that Error and I would be hapy if post any code snippet how to get device Unique Id or IEMI Number in BB 10 Cascades !!!

1条回答
小情绪 Triste *
2楼-- · 2019-08-07 20:28

Try remove your

using namespace bb::data;

and then try

QString deviceImei = bb::device::HardwareInfo().imei();
查看更多
登录 后发表回答