Wifi is enabled or disabled . How can i rechecked again and again

Wifi is enabled or disabled . How can i rechecked again and again.
I want check all item like gps, wifi . If all item is disabled . I want to enable all item one bye one . And running time if wifi is disabled . Then app goes close . Give me block please