Code example for WifiInfo

Methods: getNetworkId, getRssi

0
    } 
 
    public void update(WifiInfo info, DetailedState state) {
        boolean reorder = false;
        if (info != null && networkId != INVALID_NETWORK_ID
                && networkId == info.getNetworkId()) {
            reorder = (mInfo == null);
            mRssi = info.getRssi();
            mInfo = info;
            mState = state;
            refresh(); 
        } else if (mInfo != null) {
            reorder = true;
            mInfo = null;
            mState = null;
            refresh(); 
        } 
        if (reorder) {
            notifyHierarchyChanged(); 
        } 
    }