Active5 years, 4 months ago
I wrote the following code to get the MAC address:
This works perfectly on my phone, but in the Android emulator it returns null. Is this because the Android emulator doesn't have a MAC address?
Configure Android Box for IPTV (STB EMULATOR). Check and MAC Address and send the same to us. And if there is no solution working, restart the box. By default, the Android emulator runs emulating a Ethernet connection, but not a wifi connection. Since the Wifi is not enabled it dosen't have mac address.It's the same as when you try getting a hold of the bluetooth stuff on the emulator. IPTV STB Emulator & M3U Playlist Players IPTV STB Emulators / StbEmu If this is your first visit, be sure to check out the FAQ by clicking the link above.
kcoppockA MAC address is a unique identifier tied to your hardware on your Box Buzztv, Dreamlink, MAG 254, Avov or STB emulator. Usually you will find the mac address on the bottom of your device, if not then it is in the settings. Note: If you get the MAC address not found when trying to activate, try exiting the STB emulator, remove it and reinstall, when you re-enter the MAC here exit the STB emulator and re-enter. That does it for the Android configuration for now. MAC address generator/checker submitted 1 year ago by mixterz1985 hi, as the header states, im looking for a site that can generate a MAC address for stb emulator also a site to check that its valid before submitting it to the reseller. Had two site that worked now both are.
Best 4k monitor 2018 for mac. It also has a fully adjustable stand and a good three-year warranty, albeit without the Zero Bright Dots dead-pixel policy. Is just barely cheaper than the Z27n G2, it has color measurements similar to those of our top pick, and it comes with a smaller but still comprehensive selection of ports (one HDMI, one DisplayPort, one USB-C, and two USB 3.0 Type-A).
117k4040 gold badges231231 silver badges252252 bronze badges
ademar111190ademar1111909,5141010 gold badges6565 silver badges9292 bronze badges
3 Answers
It's the same as when you try getting a hold of the bluetooth stuff on the emulator. There is no MacAdress and should return null. Try on a real device and it will work. The code is correct.
Juan CortésJuan Cortés15.3k88 gold badges5858 silver badges8585 bronze badges
See this post where I have submitted Utils.java example to provide pure-java implementations and works without WifiManager. Code works also in Emulator.
Community♦
WhomeWhome8,04533 gold badges3131 silver badges5656 bronze badges
By default, the Android emulator runs emulating a Ethernet connection, but not a wifi connection. Since the Wifi is not enabled, your code does not show a wifi mac address. See http://kmansoft.com/2010/07/27/debugging-wifi-in-the-emulator/
I found this answer very helpful when trying to view all the network devices and MacAddress on my device - https://stackoverflow.com/a/17719579/90236 to see
Community♦
Michael LevyMichael Levy10.6k1313 gold badges5454 silver badges8989 bronze badges