android 得到手机MAC

public String getMAC(Context context) {

WifiManager wifi=(WifiManager) context.getSystemService(Context.WIFI_SERVICE);
WifiInfo info=wifi.getConnectionInfo();
return info.getMacAddress();

}

你可能感兴趣的:(android,String,service,手机)