How to Scan Nearby Wifi Signal in Android

Howdy, In this tutorial we are going to learn how we can get the names of nearby wifi signals. This kind of application is used where we want to see nearby wifi signals so that we can connect to it and do specific task such as use internet or to chat through wifi signal. You must be thinks that is it possible to chat through wifi. Yes, it is possible to chat using wifi.

So without further ado let’s start with it.

Building Android Application

  • The first thing is that we have to design user Interface for the application. The below layout consist of one button to scan the nearby WIFI and Listview to display the WIFI name.

     
  • Now connect the UI element to the java file so that user will be able to interact with it.

     
  • Now add the method that will scan the WIFI signals. This is done using BroadcastReceiver.

     
  • Now adding this function in MainActivity.java.

     

That’s it guys our WIFI scanner is ready. If you have any query then please feel free to comment down below. Thank you 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.