Code example for SignalStrength

Methods: toString

0
      } 
 
      @Override 
      public void onSignalStrengthsChanged(SignalStrength signalStrength)
      { 
        textOut.append(signalStrength.toString() + "\n");
      } 
 
      @Override 
      public void onDataConnectionStateChanged(int state, int networkType)
      { 
        String stateString = "N/A";
        String netTypString = "N/A";
        switch (state) {
          case TelephonyManager.DATA_CONNECTED:
            stateString = "DATA_CONNECTED";
            break; 
          case TelephonyManager.DATA_CONNECTING:
            stateString = "DATA_CONNECTING";
            break; 
          case TelephonyManager.DATA_DISCONNECTED: