get SignalStrength without Using PhoneStateListener onSignalStrengthchanged

后端 未结 4 1203
無奈伤痛
無奈伤痛 2020-12-06 15:07

does anyone know how to get the signal strength without having to call the onSignalStrengthChanged. The problem with onSignalStrengthchanged is that is it called when the s

4条回答
  •  攒了一身酷
    2020-12-06 15:43

    There is another API in Android called CellInfo. But I am not sure whether signal strength returned by OnSignalStrengthsChanged() and CellInfo is same or not.

    https://developer.android.com/reference/android/telephony/CellSignalStrength.html

提交回复
热议问题