我能找到我的Andr​​oid接入点的MAC地址? [英] Can I find the MAC address of my Access point in Android?

查看:181
本文介绍了我能找到我的Andr​​oid接入点的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()没有提供任何细节。请参阅<一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() WifiInfo 类将返回远程接入点的MAC地址。

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

BSSID 解释这里

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

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