0

I want the application to work only in a specific WiFi network.

How can I make that, by getting the WiFi network name and comparing with the name stored in the application ?

If yes, how to get the name of the connected network ?

hakre
  • 184,866
  • 48
  • 414
  • 792
Adham
  • 61,516
  • 96
  • 221
  • 343

1 Answers1

1

You can use this:

android.net.wifi.WifiInfo.getSSID

Please refer:

How to get name of wifi-network out of android using android API?

How to get the name of currently connected WiFi network in Android with BroadcastReceiver

Community
  • 1
  • 1
kittu88
  • 2,451
  • 5
  • 37
  • 79