- Related Questions & Answers
I have an Android Application that works on a single phone. In order to work in a single device I need to get MAC address or Android ID. So I decided to get MAC address because the app need to connect on a specified WiFi network. So how to get the MAC address from an Android Device. For those that might not know, a MAC (Media Access Control) address is a unique identifier, assigned to a device's network interface controller. This address can be used to track a device on Wi-Fi. This free Wi-Fi app for iOS and Android devices shows you everything you could want to know about the Wi-Fi and cellular network you're connected to. The SSID, BSSID, vendor, IP address, and subnet mask are shown for the Wi-Fi network you're on, and the IP address, mobile carrier name, country code, and MMC/MNS are given if you're connected to.
- Selected Reading
This example demonstrate about How to get current Wi-Fi mac address in android.
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.
Step 2 − Add the following code to res/layout/activity_main.xml.
In the above code, we have taken text view to show WIFI mac address.
Step 3 − Add the following code to src/MainActivity.java
Step 4 − Add the following code to androidManifest.xml
Let's try to run your application. I assume you have connected your actual Android Mobile device with your computer. To run the app from android studio, open one of your project's activity files and click Run icon from the toolbar. Select your mobile device as an option and then check your mobile device which will display your default screen –
Android Find Mac Address
Change Wifi Mac Address Android
Click here to download the project code