title: Setting command of WiFi enabled in not working
body: <p>I created a timer which will check whether wifi is enabled or not (WiFiManager.isWifiEnabled()) and if it is not enabled then calling WiFiManager.setEnabled() method to enable device's WiFi, it starts timer in onCreate() method of Application's background service, timer will run every 1 seconds to verify wifi enabled or not.</p>
  
  <p>When device is in active state,app runs properly but when device goes to sleep mode/locked state, wifi is getting disconnected even though I introduce timer to set wifi enabled in every 1 second. So not able to find out the way to keep wifi turned on even device goes to sleep/locked mode.</p>