Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
oddboy
Posts: 136
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1

signalStrength() from CellularNetworkInfo changed in latest release?

Hi,

 

one of the features of my app is a signal strength indicator.  i'm using the CellularNetworkInfo object and calling the signalStrength() method, and connecting the singal signalStrengthChanged() to a slot in my class.

 

it's all very simple.

 

Q_PROPERTY (int signalStrength READ signalStrength WRITE setSignalStrength NOTIFY signalStrengthChanged)

 

int signalStrength() {

   return m_cellNetwork.signalSthrength();

}

 

void setSignalStrength(int level) {

  fprintf(stdout, "signal strength changed to %u\n", level);

  fprintf(stdout, "signal strength of object: %u\n", m_cellNetwork.signalStrength();

  fflush(stdout);

}

 

and on the console, i get:

 


signal strength changed to 4294967216
signal strength of object: 4294967216

 

This used to produce output like:

 

signal strength changed to -79
signal strength of object: -79

 

what changed?  or what am i doing wrong?

 

 

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com
Please use plain text.