Code example for SignalStrength

Methods: getAsuLevel

0
        // TODO: use new SignalStrength instead of asu 
        if ((mWants & NOTIF_SIGNAL) == 0) {
            throw new RuntimeException
                ("client must call notifySignalStrength(int)"); 
        } 
        return mSignalStrength.getAsuLevel();
    } 
 
    /** 
     * Return current signal strength in "dBm", ranging from -113 - -51dBm 
     * or -1 if unknown 
     * 
     * @return signal strength in dBm, -1 if not yet updated 
     * Throws RuntimeException if client has not called notifySignalStrength() 
     */ 
    public int getSignalStrengthDbm() { 
        if ((mWants & NOTIF_SIGNAL) == 0) {
            throw new RuntimeException
                ("client must call notifySignalStrength(int)"); 
        } 
Connect your IDE to all the code out there  Get Codota for Java