android.os.ServiceManager.getService("wifi").getConnectionInfo("android", null).getSSID(); // 获取当前WiFi的名称