title: Checking for Power Saver Mode programmatically
body: <p>I have written an app (AutoWifiSwitch) and one of the features I plan to add is automatically disabling the wifi scanning service in my app if power saving mode is enabled.</p>
  
  <p>I know Android L is supposed to have Battery Saving implemented (previously HTC and Samsung would add the features themselves to the software). Presumably this now means Google will have added some sort of API for it. Ideally there would be a new action added so I could listen for that.</p>
  
  <p>I would also like to know if the above is possible with HTC/Samsung APIs and if so, how do I use them.</p>
  
  <p>I've been searching everywhere for the above questions but had absolutely no luck, the app SecureSettings (an addon for Tasker) is able to hook into the HTC/Samsung APIs to enable the power saver anyway, I'm not quite sure how they do it.</p>
  
  <p><strong>Edit</strong>: The power saver value can be gotten from the PowerManager in Android L, not sure if there is an Action for it though.</p>