List of usage examples for android.net.wifi WifiInfo toString
@Override
public String toString()
From source file:Main.java
public static String getWifiName(Context ctx) { WifiManager wifiManager = (WifiManager) ctx.getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); Log.d("wifiInfo", wifiInfo.toString()); Log.d("SSID", wifiInfo.getSSID()); return wifiInfo.getSSID(); }