Signal Strength for Android Wifi

I want to get a list of available routers, their SSID and signal strengths by doing a Wi-Fi check. Could you help me with the code?

PS: I am new to android. A relevant example would be greatly appreciated.

+4
source share
1 answer

Below code is used to get SSID, BSSID, IP address and 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 
+5
source

Source: https://habr.com/ru/post/1434625/


All Articles