I`m trying to detect the changing between power save mode states - enabled or disabled, on android 5.0 lollipop but without any luck.
I read the [article of this user][1]
[1]: Android power save mode listener? but with the example there it just doesn't work on my device - Samsung galaxy S5, based on android 5.0
The source which I`m using is :
<receiver android:enabled="true" android:name=".core.receiver.PowerSaveModeReceiver" >
<intent-filter>
<action android:name="android.os.action.POWER_SAVE_MODE_CHANGED"/>
</intent-filter>
</receiver>
So I just don't receive any broadcast when I manually change power saving mode on my device. Thank you for the help!