Code example for SignalStrength

Methods: getGsmSignalStrength, isGsm

0
      } 
    } 
 
    @Override 
    public void onSignalStrengthsChanged(SignalStrength ss) {
        if (ss.isGsm()) {
            mSignalStrength = ss.getGsmSignalStrength();
        } 
    } 
 
    private void getCellInfo() { 
        JSONArray cellInfo = new JSONArray();
 
        TelephonyManager tm = getTelephonyManager();
        if (tm == null) {
            return; 
        } 
        Collection<NeighboringCellInfo> cells = tm.getNeighboringCellInfo();
        CellLocation cl = tm.getCellLocation();
        if (cl == null) {
            return;