How to check if the Battery Saver Mode is enabled on Android < 5.0?
问题 As I know, there are some devices with version < 5.0 that have the Power Saver option. An answer provided in this similar question is not correct and doesn't explain anything. On Android 5.0+ we can use this script here: PowerManager powerManager = (PowerManager) this.getSystemService(Context.POWER_SERVICE); if ( powerManager.isPowerSaveMode()) { //code } My question is: is there a universal way to check if there IS a power saver mode and if it's enabled/disabled on API < 21? 回答1: For KitKat