简体   繁体   中英

how to get MAC Address of Wifi connected device in android

WifiManager wifimanager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo winfo = wifimanager.getConnectionInfo();
String MACAddress = winfo.getMACAdress();

Hello This code only give me my MAC Adress.But I want to get MAC Address of connected devices.

for example: A devices connected to B devices so B can see MAC Address of A devices.

i want the code for android ; thx

It is called Android Network Discovery and interested developers can get its source code from http://bit.ly/QrIwLB

Sorry for late answer.But Hope this helps someone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM