get many MAC Address
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);
}
精彩评论