gsmStrength = String.valueOf(signalStrength.getGsmSignalStrength() * 2 - 113);
String phnstrngth = MyListener.getStrength() + "dBm";
上面的代码给出了GSM Coverage的dbm值。同样,我想获得CDMA Coverage的dbm值。没有弄到怎么办!请帮忙!谢谢!
答案 0 :(得分:0)
这对CDMA来说实际上更简单,因为API提供了以dBm为单位的信号强度:
cdmaStrength = String.valueOf(signalStrength.getCdmaDbm();
String phnstrngth = MyListener.getStrength() + "dBm";