Android
android.net.wifi
public class

android.net.wifi.ScanResult

java.lang.Object
android.net.wifi.ScanResult Parcelable

Describes information about a detected access point. In addition to the attributes described here, the supplicant keeps track of quality, noise, and maxbitrate attributes, but does not currently report them to external clients.

Summary

Constants

      Value  
Creator<ScanResult CREATOR  Implement the Parcelable interface      
Constants inherited from interface android.os.Parcelable

Fields

public      String  BSSID  The address of the access point. 
public      String  SSID  The network name. 
public      String  capabilities  Describes the authentication, key management, and encryption schemes supported by the access point. 
public      int  frequency  The frequency in MHz of the channel over which the client is communicating with the access point. 
public      int  level  The detected signal level in dBm. 

Public Constructors

            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.

Public Methods

          int  describeContents()
Implement the Parcelable interface
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.
          void  writeToParcel(Parcel dest, int flags)
Implement the Parcelable interface
Methods inherited from class java.lang.Object
Methods inherited from interface android.os.Parcelable

Details

Constants

public static final Creator<ScanResult> CREATOR

Implement the Parcelable interface

Fields

public String BSSID

The address of the access point.

public String SSID

The network name.

public String capabilities

Describes the authentication, key management, and encryption schemes supported by the access point.

TODO: Parse this info into a WifiConfiguration.

public int frequency

The frequency in MHz of the channel over which the client is communicating with the access point.

public int level

The detected signal level in dBm. At least those are the units used by the TI driver.

Public Constructors

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.

Public Methods

public int describeContents()

Implement the Parcelable interface

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.

public void writeToParcel(Parcel dest, int flags)

Implement the Parcelable interface
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48