Thursday, August 8, 2019

Enable / Disable WiFi Programmatically - Android Studio Tutorial

In this tutorial you will learn, how to programmatically activate and deactivate WiFi using the WifiManager class and it's setWifiEnabled method.

For this we have to add the ACCESS_WIFI_STATE and the CHANGE_WIFI_STATE Manifest permissions.

Example to my more Android tutorials? Check my playlist me on social

No comments:

Post a Comment