public String getMacAddress_(Context context) { WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); WifiInfo info = wifi.getConnectionInfo(); String mac = info.getMacAddress(); Log.d("getMacAddress",mac); return mac; }
DhcpInfo dhcp = wifi.getDhcpInfo(); Log.i(TAG, "Gateway = " + dhcp.gateway);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)