我能找到我的Android接入点的MAC地址? [英] Can I find the MAC address of my Access point in Android?
问题描述
我能否Android应用程序找到WiFi接入点所连接到的MAC地址?
Can my Android app find the MAC address of the Wifi access point it is connected to?
该文档的android.net.wifi.WifiInfo getMacAddress()没有提供任何细节。请参阅<一href="http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress">http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress(). 我假设这是我的电话的MAC地址。我能找到的接入点的MAC地址?
The docs for android.net.wifi.WifiInfo getMacAddress() don't provide any details. See http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress(). I'm assuming this is the Mac address of my phone. Can I find the Mac address of the access point?
推荐答案
<一个href="http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getBSSID%28%29"><$c$c>getBSSID()$c$c>对 WifiInfo
类将返回远程接入点的MAC地址。
getBSSID()
of WifiInfo
class will return MAC address of remote access point.
BSSID
解释这里。
这篇关于我能找到我的Android接入点的MAC地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!