SlideShare a Scribd company logo
1 of 10
Download to read offline
WIFI API in Android


●WifiManager
●WifiConfiguration

●WifiInfo

●ScanResult
WifiManager
Class Overview
This class provides the primary API for managing
all aspects of Wi-Fi connectivity.
This is the API to use when performing Wi-Fi
specific operations. To perform operations that
pertain to network connectivity at an abstract level,
use ConnectivityManager.
WifiManager
    It deals with several categories of items:
●   The list of configured networks. The list can be viewed and
    updated, and attributes of individual entries can be
    modified.
●   The currently active Wi-Fi network, if any. Connectivity
    can be established or torn down, and dynamic information
    about the state of the network can be queried.
●   Results of access point scans, containing enough
    information to make decisions about what access point to
    connect to.
●   It defines the names of various Intent actions that are
    broadcast upon any sort of change in Wi-Fi state.
WifiConfiguration
Class Overview
A class representing a configured Wi-Fi network,
including the security configuration.
WifiInfo
Class Overview
Describes the state of any Wifi connection that is
active or is in the process of being set up.
ScanResult
    Summary
●   public String BSSID
●   public String SSID
●   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.
WifiInfo
    Summary
●   private int mRssi;
    Received Signal Strength Indicator
●   private int mLinkSpeed;
    Link speed in Mbps
●   private boolean mMeteredHint;
    Flag indicating that AP has hinted that upstream connection is
    metered, and sensitive to heavy data transfers
ScanResult
Class Overview
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.
WifiManager
    Summary
●   List<WifiConfiguration>      getConfiguredNetworks()
    Return a list of all the networks configured in the supplicant.
●   WifiInfo getConnectionInfo()
    Return dynamic information about the current Wi-Fi connection,
    if any is active.
●   List<ScanResult>      getScanResults()
    Return the results of the latest access point scan.
WifiManager
    Summary
●   startScan()
    Request a scan for access points.
●   static int calculateSignalLevel(int rssi, int numLevels)
    Calculates the level of the signal.
●   static int compareSignalLevel(int rssiA, int rssiB)
    Compares two signal strengths.

More Related Content

What's hot

Midokura Gluecon 2014 - Level up your OpenStack Neutron Networking
Midokura Gluecon 2014 - Level up your OpenStack Neutron NetworkingMidokura Gluecon 2014 - Level up your OpenStack Neutron Networking
Midokura Gluecon 2014 - Level up your OpenStack Neutron NetworkingAdam Johnson
 
Short blutooth present
Short blutooth present Short blutooth present
Short blutooth present syedishaq
 
Mikrotik Hotspot User Manager
Mikrotik Hotspot User ManagerMikrotik Hotspot User Manager
Mikrotik Hotspot User ManagerKHNOG
 
Capitulo 6 v 2 0
Capitulo 6 v 2 0Capitulo 6 v 2 0
Capitulo 6 v 2 0milkux
 
Introduction to Bluetooth Low Energy
Introduction to Bluetooth Low EnergyIntroduction to Bluetooth Low Energy
Introduction to Bluetooth Low EnergyNEEVEE Technologies
 
Introduction about Apache MYNEWT RTOS
Introduction about Apache MYNEWT RTOSIntroduction about Apache MYNEWT RTOS
Introduction about Apache MYNEWT RTOSNEEVEE Technologies
 
Wi fi protected-access
Wi fi protected-accessWi fi protected-access
Wi fi protected-accessbhanu4ugood1
 
E commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and ssl
E commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and sslE commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and ssl
E commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and sslShyamMohanKunwar
 
Nagios monitoring with_python_plugin
Nagios monitoring with_python_pluginNagios monitoring with_python_plugin
Nagios monitoring with_python_pluginnndarshan
 
Wireless Security null seminar
Wireless Security null seminarWireless Security null seminar
Wireless Security null seminarNilesh Sapariya
 
RUGGEDCOM RM1224 cellular routers
RUGGEDCOM RM1224 cellular routersRUGGEDCOM RM1224 cellular routers
RUGGEDCOM RM1224 cellular routersashwini reliserv
 
Designing For Voice - #WLPC 10 talk
Designing For Voice - #WLPC 10 talkDesigning For Voice - #WLPC 10 talk
Designing For Voice - #WLPC 10 talkMike Leibovitz
 

What's hot (19)

Iuwne10 S02 L05
Iuwne10 S02 L05Iuwne10 S02 L05
Iuwne10 S02 L05
 
Midokura Gluecon 2014 - Level up your OpenStack Neutron Networking
Midokura Gluecon 2014 - Level up your OpenStack Neutron NetworkingMidokura Gluecon 2014 - Level up your OpenStack Neutron Networking
Midokura Gluecon 2014 - Level up your OpenStack Neutron Networking
 
Wireless Cracking using Kali
Wireless Cracking using KaliWireless Cracking using Kali
Wireless Cracking using Kali
 
Wireless Network Security
Wireless Network SecurityWireless Network Security
Wireless Network Security
 
Short blutooth present
Short blutooth present Short blutooth present
Short blutooth present
 
Mikrotik Hotspot User Manager
Mikrotik Hotspot User ManagerMikrotik Hotspot User Manager
Mikrotik Hotspot User Manager
 
Capitulo 6 v 2 0
Capitulo 6 v 2 0Capitulo 6 v 2 0
Capitulo 6 v 2 0
 
Iuwne10 S03 L02
Iuwne10 S03 L02Iuwne10 S03 L02
Iuwne10 S03 L02
 
WPA2
WPA2WPA2
WPA2
 
Introduction to Bluetooth Low Energy
Introduction to Bluetooth Low EnergyIntroduction to Bluetooth Low Energy
Introduction to Bluetooth Low Energy
 
Introduction about Apache MYNEWT RTOS
Introduction about Apache MYNEWT RTOSIntroduction about Apache MYNEWT RTOS
Introduction about Apache MYNEWT RTOS
 
Wi fi protected-access
Wi fi protected-accessWi fi protected-access
Wi fi protected-access
 
E commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and ssl
E commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and sslE commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and ssl
E commerce &amp; erp assignment | Firewall , Types of attack ,dmz, dhcp and ssl
 
Wpa vs Wpa2
Wpa vs Wpa2Wpa vs Wpa2
Wpa vs Wpa2
 
Nagios monitoring with_python_plugin
Nagios monitoring with_python_pluginNagios monitoring with_python_plugin
Nagios monitoring with_python_plugin
 
Wireless Security null seminar
Wireless Security null seminarWireless Security null seminar
Wireless Security null seminar
 
Iuwne10 S02 L07
Iuwne10 S02 L07Iuwne10 S02 L07
Iuwne10 S02 L07
 
RUGGEDCOM RM1224 cellular routers
RUGGEDCOM RM1224 cellular routersRUGGEDCOM RM1224 cellular routers
RUGGEDCOM RM1224 cellular routers
 
Designing For Voice - #WLPC 10 talk
Designing For Voice - #WLPC 10 talkDesigning For Voice - #WLPC 10 talk
Designing For Voice - #WLPC 10 talk
 

Similar to Wifi api android

Huawei AC6508 Wireless Access Controller Datasheet.pdf
Huawei AC6508 Wireless Access Controller Datasheet.pdfHuawei AC6508 Wireless Access Controller Datasheet.pdf
Huawei AC6508 Wireless Access Controller Datasheet.pdfBruno Rafael
 
English for engineering
English for engineeringEnglish for engineering
English for engineeringQoimah Adielah
 
Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011Dân Chơi
 
IEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh NetworkIEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh NetworkArunabh Mishra
 
Rina converged network operator - etsi workshop
Rina converged network operator -  etsi workshopRina converged network operator -  etsi workshop
Rina converged network operator - etsi workshopARCFIRE ICT
 
Fudcon 2015...Wireless: From Basics to Internals
Fudcon 2015...Wireless: From Basics to InternalsFudcon 2015...Wireless: From Basics to Internals
Fudcon 2015...Wireless: From Basics to InternalsKiran Divekar
 
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...Sagar Rai
 
Outdoor Mesh Wireless Networks
Outdoor Mesh Wireless NetworksOutdoor Mesh Wireless Networks
Outdoor Mesh Wireless NetworksLogicalis Latam
 
LiveAction: Visualization, Management, and Control for Cisco IWAN
LiveAction: Visualization, Management, and Control for Cisco IWANLiveAction: Visualization, Management, and Control for Cisco IWAN
LiveAction: Visualization, Management, and Control for Cisco IWANLiveAction IT
 
Remote Monitoring for multi-vendor networks
Remote Monitoring for multi-vendor networksRemote Monitoring for multi-vendor networks
Remote Monitoring for multi-vendor networksTanaza
 
SDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center NetworkingSDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center NetworkingThomas Graf
 
Network Virtualization & Software-defined Networking
Network Virtualization & Software-defined NetworkingNetwork Virtualization & Software-defined Networking
Network Virtualization & Software-defined NetworkingDigicomp Academy AG
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)Jeff Green
 
VMware Advance Troubleshooting Workshop - Day 2
VMware Advance Troubleshooting Workshop - Day 2VMware Advance Troubleshooting Workshop - Day 2
VMware Advance Troubleshooting Workshop - Day 2Vepsun Technologies
 
VMware vSphere 6.0 - Troubleshooting Training - Day 2
VMware vSphere 6.0 - Troubleshooting Training - Day 2VMware vSphere 6.0 - Troubleshooting Training - Day 2
VMware vSphere 6.0 - Troubleshooting Training - Day 2Sanjeev Kumar
 

Similar to Wifi api android (20)

Huawei AC6508 Wireless Access Controller Datasheet.pdf
Huawei AC6508 Wireless Access Controller Datasheet.pdfHuawei AC6508 Wireless Access Controller Datasheet.pdf
Huawei AC6508 Wireless Access Controller Datasheet.pdf
 
English for engineering
English for engineeringEnglish for engineering
English for engineering
 
Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011Ccna 3 chapter 7 v4.0 answers 2011
Ccna 3 chapter 7 v4.0 answers 2011
 
IEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh NetworkIEEE 802.11s - Wireless Mesh Network
IEEE 802.11s - Wireless Mesh Network
 
Contrail Enabler for agile cloud services
Contrail Enabler for agile cloud servicesContrail Enabler for agile cloud services
Contrail Enabler for agile cloud services
 
Tap Into the Health of Your Network
Tap Into the Health of Your NetworkTap Into the Health of Your Network
Tap Into the Health of Your Network
 
Rina converged network operator - etsi workshop
Rina converged network operator -  etsi workshopRina converged network operator -  etsi workshop
Rina converged network operator - etsi workshop
 
Fudcon 2015...Wireless: From Basics to Internals
Fudcon 2015...Wireless: From Basics to InternalsFudcon 2015...Wireless: From Basics to Internals
Fudcon 2015...Wireless: From Basics to Internals
 
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
 
Outdoor Mesh Wireless Networks
Outdoor Mesh Wireless NetworksOutdoor Mesh Wireless Networks
Outdoor Mesh Wireless Networks
 
LiveAction: Visualization, Management, and Control for Cisco IWAN
LiveAction: Visualization, Management, and Control for Cisco IWANLiveAction: Visualization, Management, and Control for Cisco IWAN
LiveAction: Visualization, Management, and Control for Cisco IWAN
 
NFA - Middle East Workshop
NFA - Middle East WorkshopNFA - Middle East Workshop
NFA - Middle East Workshop
 
Strix nms
Strix nmsStrix nms
Strix nms
 
IBM Programmable Network Controller
IBM Programmable Network ControllerIBM Programmable Network Controller
IBM Programmable Network Controller
 
Remote Monitoring for multi-vendor networks
Remote Monitoring for multi-vendor networksRemote Monitoring for multi-vendor networks
Remote Monitoring for multi-vendor networks
 
SDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center NetworkingSDN & NFV Introduction - Open Source Data Center Networking
SDN & NFV Introduction - Open Source Data Center Networking
 
Network Virtualization & Software-defined Networking
Network Virtualization & Software-defined NetworkingNetwork Virtualization & Software-defined Networking
Network Virtualization & Software-defined Networking
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)
 
VMware Advance Troubleshooting Workshop - Day 2
VMware Advance Troubleshooting Workshop - Day 2VMware Advance Troubleshooting Workshop - Day 2
VMware Advance Troubleshooting Workshop - Day 2
 
VMware vSphere 6.0 - Troubleshooting Training - Day 2
VMware vSphere 6.0 - Troubleshooting Training - Day 2VMware vSphere 6.0 - Troubleshooting Training - Day 2
VMware vSphere 6.0 - Troubleshooting Training - Day 2
 

Wifi api android

  • 1. WIFI API in Android ●WifiManager ●WifiConfiguration ●WifiInfo ●ScanResult
  • 2. WifiManager Class Overview This class provides the primary API for managing all aspects of Wi-Fi connectivity. This is the API to use when performing Wi-Fi specific operations. To perform operations that pertain to network connectivity at an abstract level, use ConnectivityManager.
  • 3. WifiManager It deals with several categories of items: ● The list of configured networks. The list can be viewed and updated, and attributes of individual entries can be modified. ● The currently active Wi-Fi network, if any. Connectivity can be established or torn down, and dynamic information about the state of the network can be queried. ● Results of access point scans, containing enough information to make decisions about what access point to connect to. ● It defines the names of various Intent actions that are broadcast upon any sort of change in Wi-Fi state.
  • 4. WifiConfiguration Class Overview A class representing a configured Wi-Fi network, including the security configuration.
  • 5. WifiInfo Class Overview Describes the state of any Wifi connection that is active or is in the process of being set up.
  • 6. ScanResult Summary ● public String BSSID ● public String SSID ● 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.
  • 7. WifiInfo Summary ● private int mRssi; Received Signal Strength Indicator ● private int mLinkSpeed; Link speed in Mbps ● private boolean mMeteredHint; Flag indicating that AP has hinted that upstream connection is metered, and sensitive to heavy data transfers
  • 8. ScanResult Class Overview 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.
  • 9. WifiManager Summary ● List<WifiConfiguration> getConfiguredNetworks() Return a list of all the networks configured in the supplicant. ● WifiInfo getConnectionInfo() Return dynamic information about the current Wi-Fi connection, if any is active. ● List<ScanResult> getScanResults() Return the results of the latest access point scan.
  • 10. WifiManager Summary ● startScan() Request a scan for access points. ● static int calculateSignalLevel(int rssi, int numLevels) Calculates the level of the signal. ● static int compareSignalLevel(int rssiA, int rssiB) Compares two signal strengths.