Android Programming Press on the image to return to the main documentation page.

ABWifi

Written by Alain Bailleul

List of types:

ABWifi
ABWifiReading

ABWifi

ABWifi 2.x

A library to retrieve the WIFIs around you.

Note: not compatible with ABWifi 1.x!
ABWifi 1.x was a mix of several tools but there are seperate libraries now for this.
E.g. Use other libraries like esLocation2 to get location info.

Permissions:

android.permission.ACCESS_WIFI_STATE
android.permission.CHANGE_WIFI_STATE
android.permission.INTERNET

Events:

FoundReadings(readings as List)

Members:


  GetNewReadingWifi

  Initialize (eventName As String)

  StartWifi As Boolean

  StopWifi

Members description:

GetNewReadingWifi
Get a new reading. Only one reading will be done, so you have to call it again
in the FoundReadings() event if you want continious readings.
Initialize (eventName As String)
Initialize ABWifi
eventName:
StartWifi As Boolean
Start ABWifi. Use GetNewReadingWifi() to get one reading
The event FoundReadings() will be raised containing the current Wifi infos
If WIFI was not enabled on the device, it will be enabled now.
Return type: @return:Was call successful
StopWifi
Stop ABWifi
If WIFI was not enabled on the device, it will be disabled now.

ABWifiReading

Info about the reading.

Events:

None

Members:


  BSSID As String

  Capabilities As String

  Frequency As Int

  FullString As String

  IsBestSignal As Boolean

  IsConnected As Boolean

  Level As Int

  SSID As String

Members description:

BSSID As String
Capabilities As String
Frequency As Int
FullString As String
IsBestSignal As Boolean
IsConnected As Boolean
Level As Int
SSID As String

Top