CellID & LocationAreaCode always return zero on my device:
Sample Code:
int cellId = bb::device::CellularNetworkInfo().cellId();
int LAC = bb::device::CellularNetworkInfo().locationAreaCode();
The above will ALWAYS be zero
Strangely signal strength does return a valid value (eg -90):
Sample Code:
int signalStrength = bb::device::CellularNetworkInfo().signalStrength();
I am on a GSM network, but just for interests sake I tried networkId & systemId and they still returned zero
Extra Info:
I have #include bb/device/CellularNetworkInfo in the hpp
In my pro file I added: LIBS += -lbbdevice
The device is connected to the network (can make calls etc)
I have ticked all the permissions in the bar-descriptor
I used this as a reference
Has anyone got values for CellID & LAC?
Where am I going wrong?
Thanks in advance
Cite:
Identifier for the geographic region which contains the base station serving the GSM/UMTS network. Permissions: The application must have the read_radio_modem_data permission to access this information.
Adding this to your bar-descriptor.xml will solve this issue:
<permission>read_radio_modem_data</permission>