在Android中以编程方式在移动网络中查找3g频率和频道号码?

时间:2015-06-19 12:06:22

标签: android network-programming

开发了信号强度代码。现在我想找出频率和频道号。

public class myPhoneStateListener extends PhoneStateListener {
    int SignalStrengthOfTower  = 0;
    int EcNo=0;
    public void onSignalStrengthsChanged(SignalStrength signalStrength) {
       super.onSignalStrengthsChanged(signalStrength);
       SignalStrengthOfTower = signalStrength.getGsmSignalStrength();
       SignalStrengthOfTower = (2 * SignalStrengthOfTower) - 113;
       signalStrengthNetwork=String.valueOf(SignalStrengthOfTower);
       signalview.setText(signalStrengthNetwork);
     }
}

0 个答案:

没有答案