I am trying to create a widget for enabling and disabling the wifi.
if(myWifiManager.isWifiEnabled()){ System.out.println(\"Toggle Wifi Enabled
Download this example it is what you want
https://github.com/siddhpuraamitr/WIfi-Toggle-Widget