我可以在 Android 中找到接入点的 MAC 地址吗? [英] Can I find the MAC address of my Access point in Android?

查看:16
本文介绍了我可以在 Android 中找到接入点的 MAC 地址吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 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() 的文档没有提供任何详细信息.

The docs for android.net.wifi.WifiInfo getMacAddress() don't provide any details.

参见 http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress().

我假设这是我手机的 Mac 地址.我可以找到接入点的 Mac 地址吗?

I'm assuming this is the Mac address of my phone. Can I find the Mac address of the access point?

推荐答案

WifiInfo 类的getBSSID() 将返回远程接入点的 MAC 地址.

getBSSID() of WifiInfo class will return MAC address of remote access point.

BSSID 解释了这里.

这篇关于我可以在 Android 中找到接入点的 MAC 地址吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆