D
D
dobriykot232020-07-11 20:47:58
Java
dobriykot23, 2020-07-11 20:47:58

How to get the MAC address of the phone adapter?

I try:
<_uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/_>

WifiManager manager = (WifiManager)getSystemService(Context.WIFI_SERVICE);
WifiInfo info = manager.getConnectionInfo();
String address = info.getMacAddress();
But this returns 02:00:00:00:00:00. Who knows how to get the MAC address of the phone adapter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2020-07-13
@402d

https://stackoverflow.com/questions/35125586/wifi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question