user2947300
user2947300

Reputation: 21

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

Upvotes: 2

Views: 4499

Answers (1)

stacktry
stacktry

Reputation: 322

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.

Upvotes: 1

Related Questions