Hello all, I need help with trying to receive the phone signal's strength with this library. I want to read the signal strength just once, instead of automatic. So I try using this code:
The first Msgbox results in
but the second gives me an error
B4X:
Dim PSL As PhoneStateListener
...
Sub button1_click
Msgbox(PSL.CellLocation,"")
Msgbox(PSL.GsmSignalStrength,"")
End Sub
The first Msgbox results in
[3812,242559177,-1]
but the second gives me an error
An error has occured in
sub:mainbutton1_click
(java line:234)
java.lang.
NullPointerException
Continue?