Code example for SignalStrength

Methods: getCdmaDbm, getGsmSignalStrength, isGsm, toString

0
        // mServiceState.getState(); 
    } 
 
    private void updateSignalStrength() 
    { 
        LOGD("onSignalStrengthsChanged mSignalStrength:" + mSignalStrength.toString());
        asu = mSignalStrength.getGsmSignalStrength();
 
        if (!mSignalStrength.isGsm())
        { 
            dBm = mSignalStrength.getCdmaDbm();
        } else 
        { 
            asu = (asu == 99 ? -1 : asu);
            if (asu != -1)
            { 
                dBm = -113 + 2 * asu;
            } 
        } 
 
    }