The attached project refers. The top horizontal switch should switch on/off the Bluetooth of your device while the right vertical switch (rounded corners) should switch on/off the WiFi of your device. Nothing has been assigned to the left (square) vertical switch. It uses inline java code to enable/disable Bluetooth and Wifi.