You probably mean the BSSID, not MAC.

First you call this:

http://developer.android.com/reference/android/net/wifi/WifiManager.html#getConnectionInfo()

and get a WifiInfo object back (or null).

Then you call this to get the BSSID:

http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getBSSID()

-- Kostya

22.02.2011 0:44, Xian Chen пишет:
Hi,

How can I obtain the MAC address of current associated WIFI AP?

Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to