how to get current wifi connection info in android

Hello Guys. Welcome to our new tutorial on how to get current wifi connection info in android using android studio. please follow the code given below to display current wifi connection info in android.

  • First Create a new project in Android Studio
  • File ⇒ New Android ⇒ Application Project
  • Then Open src -> package -> MainActivity.java and then add following code :

JAVA (MainActivity.java)

  •  Now Open res -> layout -> activity_main.xml and then add following code :

XML (activity_main.xml)

Output:

Finally, run this project.

This is how current wifi connection info in android look like.

current wifi connection info in android

current wifi connection info in android

Add a Comment

Your email address will not be published. Required fields are marked *