HIGH: a voltage greater than 3.0V is present at the pin (5V boards);
Low: voltage less than 1.5V is present at the pin (5V boards);
public boolean isPowerSaveMode() { PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && powerManager.isPowerSaveMode()) { return true; } else { return false; } }