I want get LTE signal strength on PhoneStateListener.onSignalStrengthChanged but i don't know what do it. it will be appreciate to help me.
procedure TPhoneStateListener.onSignalStrengthsChanged(signalStrength:JSignalStrength);
begin
//how can get LTE signal strength
end;
Thanks.
The PhoneStateListener passes an instance of SignalStrength to the onSignalStrengthsChanged method. However, SignalStrength does not contain a LTE signal strength property.
You may use this code to access the LTE signal strength by reading TelephonyManager.getAllCellInfo():
For Delphi, replace curly braces with begin/and end and use the usual wrapper classes.
Note that the code requires the ACCESS_COARSE_LOCATION permission.