本文介绍了如何找到一个Android设备的MAC地址编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何获得的Android设备的MAC ID编程。我已经做了与IMIE code,我知道如何手动检查MAC ID的设备,但不知道如何找出编程。您的建议是AP preciated。
解决方案
WifiManager wifiManager =(WifiManager)getSystemService(Context.WIFI_SERVICE);
WifiInfo wInfo = wifiManager.getConnectionInfo();
字符串MACADDRESS = wInfo.getMacAddress();
How do i get Mac Id of android device programatically. I have done with IMIE Code and I know how to check Mac id on device manually but have no idea how to find out programatically. Your Advice is appreciated.
解决方案
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo wInfo = wifiManager.getConnectionInfo();
String macAddress = wInfo.getMacAddress();
这篇关于如何找到一个Android设备的MAC地址编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!