deepak
deepak

Reputation: 53

Android Wifi Signal Strength

I want to get the list of available routers, their SSID's and signal strengths, by doing a wifi scan. Can you please help me out with the code?

P.S.: I am new to android. A related Example will be very much appreciated.

Upvotes: 4

Views: 2701

Answers (1)

Priyank Patel
Priyank Patel

Reputation: 12382

Below code is used to get SSID, BSSID, IP Address & RSSI...

WifiManager wifi = = (WifiManager) uMobility.getContext().getSystemService(Context.WIFI_SERVICE);    

String ssid = wifi.getConnectionInfo().getSSID(); // for geting SSID
String bssid = wifi.getConnectionInfo().getBSSID(); // for geting BSSID
int ipAddress = wifi.getConnectionInfo().getIpAddress(); // for geting IP Address
int rssi = wifi.getConnectionInfo().getRssi(); // for geting RSSI               

Upvotes: 5

Related Questions