简体   繁体   中英

Android getting Mac Address

I want to write an application which give the user the mac address of the device. How to do that ? wifiInf.getMacAddress(); method not worked for me. is there any other way?

Thanks

Were you connected to wifi? check that first.

http://developer.android.com/reference/android/net/wifi/WifiInfo.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM