Hello all.. This is a simple code snippet to enable WI-FI in android programatically in android. Note : Make sure to add the permissions in the manifest file. These are the permissions. Please leave your valuable comments on this post.
The WifiManager can be used to enable and disable wifi. Where ‘enabled’ is a boolean.