开发者

get many MAC Address

开发者 https://www.devze.com 2023-02-11 20:42 出处:网络
I need to many MAC address for one Device in Android. is it possible to get many MAC Add开发者_开发技巧ress from one device.?

I need to many MAC address for one Device in Android. is it possible to get many MAC Add开发者_开发技巧ress from one device.? plz help me.


Chick here for documentation mac address of WiFi controller. Click here for documentation to find mac address of bluetooth adapter.

Edit1: If you need hardware addresses of all the Wifi access points available to you. You have scan for the networks (See here for API) Iterate over results to get mac address of each. (See here for API)

code will look like

List<ScanResult> scanResults= wfManager.getScanResults();
for (ScanResult scanR: scanResults){
 System.out.println(scanR.BSSID);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消