Android examples for android.net.wifi:Wifi Scan
get Available Wifi Scan
import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.wifi.ScanResult; import android.net.wifi.WifiConfiguration; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import java.util.List; public class Main{ public static List<ScanResult> getAvailableWifiScan(Context c) { WifiManager wifiManager = getWifiManger(c); return wifiManager.getScanResults(); }/* ww w . j a v a 2 s .c o m*/ private static WifiManager getWifiManger(Context c) { return (WifiManager) c.getSystemService(c.WIFI_SERVICE); } }