FileDocCategorySizeDatePackage
ScanResult.javaAPI DocAndroid 1.5 API3633Wed May 06 22:42:04 BST 2009android.net.wifi

ScanResult

public class ScanResult extends Object implements android.os.Parcelable
Describes information about a detected access point. In addition to the attributes described here, the supplicant keeps track of {@code quality}, {@code noise}, and {@code maxbitrate} attributes, but does not currently report them to external clients.

Fields Summary
public String
SSID
The network name.
public String
BSSID
The address of the access point.
public String
capabilities
Describes the authentication, key management, and encryption schemes supported by the access point.
public int
level
The detected signal level in dBm. At least those are the units used by the TI driver.
public int
frequency
The frequency in MHz of the channel over which the client is communicating with the access point.
public static final Creator
CREATOR
Implement the Parcelable interface {@hide}
Constructors Summary
public ScanResult(String SSID, String BSSID, String caps, int level, int frequency)
We'd like to obtain the following attributes, but they are not reported via the socket interface, even though they are known internally by wpa_supplicant. {@hide}

        this.SSID = SSID;
        this.BSSID = BSSID;
        this.capabilities = caps;
        this.level = level;
        this.frequency = frequency;
        //networkConfig = null;
    
Methods Summary
public intdescribeContents()
Implement the Parcelable interface {@hide}

        return 0;
    
public java.lang.StringtoString()

        StringBuffer sb = new StringBuffer();
        String none = "<none>";

        sb.append("SSID: ").
            append(SSID == null ? none : SSID).
            append(", BSSID: ").
            append(BSSID == null ? none : BSSID).
            append(", capabilities: ").
            append(capabilities == null ? none : capabilities).
            append(", level: ").
            append(level).
            append(", frequency: ").
            append(frequency);

        return sb.toString();
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Implement the Parcelable interface {@hide}

        dest.writeString(SSID);
        dest.writeString(BSSID);
        dest.writeString(capabilities);
        dest.writeInt(level);
        dest.writeInt(frequency);