IMEI Number In bb 10 Cascades

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

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

      

I also included

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

      

to the project.pro file !!! but I am getting an error like ...

- expected namespace-name before ';' token

- 'data' is not a namespace-name

      

I want to know why I am getting this error, how to solve this error and it would be annoying to me if I posted a piece of code how to get the unique device id or IEMI number in BB 10 Cascades !!!

+1


source to share


1 answer


Try to remove

using namespace bb::data;

      



and then try

QString deviceImei = bb::device::HardwareInfo().imei();

      

+3


source







All Articles