Code example for SignalStrength

Methods: getCdmaDbmisGsm

0
         *  
         * @see android.telephony.PhoneStateListener#onSignalStrengthsChanged(android.telephony.SignalStrength) 
         */ 
        @Override 
        public void onSignalStrengthsChanged(SignalStrength ss) { 
            if (ss.isGsm()) { 
                newState("signalStrength", 
                        String.valueOf(ss.getGsmSignalStrength())); 
            } else if (telephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { 
                newState("signalStrength", String.valueOf(ss.getCdmaDbm())); 
            } 
        } 
 
    }; 
 
}