想用PhoneStateListener实时获取手机信号强度,三星s4真机测试时onSignalStrengthsChanged里得到的signalStrength一直是固定值(SignalStrength: 99 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 -80 gsm|lte 0x0),所以signalStrength.getGsmSignalStrength()得到asu是99,并不是真实值,这是为什么啊 啊 啊?
public void onSignalStrengthsChanged(SignalStrength signalStrength) {}
public void onSignalStrengthsChanged(SignalStrength signalStrength) {}
解决方案