Code example for SignalStrength

Methods: getCdmaDbm, getCdmaEcio, getEvdoDbm, getEvdoEcio, getEvdoSnr, getGsmBitErrorRate, getGsmSignalStrength

0
		writeServicesStateToLog(state, type, activity);
	} 
	 
	public void onSignalStrengthsChanged(SignalStrength strength) {
		StringBuffer b = new StringBuffer();
		Log.d(TAG, "CdmaDbm: " + strength.getCdmaDbm());
		b.append("CdmaDbm: " + strength.getCdmaDbm() + "\n");
		Log.d(TAG, "CdmaEcio: " + strength.getCdmaEcio());
		b.append("CdmaEcio: " + strength.getCdmaEcio() + "\n");
		Log.d(TAG, "EvdoDbm: " + strength.getEvdoDbm());
		b.append("EvdoDbm: " + strength.getEvdoDbm() + "\n");
		Log.d(TAG, "EvdoEcio: " + strength.getEvdoEcio());
		b.append("EvdoEcio: " + strength.getEvdoEcio() + "\n");
		Log.d(TAG, "EvdoSnr: " + strength.getEvdoSnr());
		b.append("EvdoSnr: " + strength.getEvdoSnr() + "\n");
		Log.d(TAG, "GsmBitErrorRate: " + strength.getGsmBitErrorRate());
		b.append("GsmBitErrorRate: " + strength.getGsmBitErrorRate() + "\n");
		Log.d(TAG, "GsmSignalStrength: " + strength.getGsmSignalStrength());
		// value of our interest 
		b.append("GsmSignalStrength: " + strength.getGsmSignalStrength());
		if (signalText != null) {
			signalText.setText(b.toString());
		} 
		writeSignalStrenghtToLog(strength.getGsmSignalStrength());
 
	} 
 
	public void setConnectionStateTextView(TextView text) {
		this.connText = text;