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 ?
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 ?
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