<receiver android:name="org.greencodeinitiative.testapp.core.service.MyReceiver">
<intent-filter>
<action android:name="android.intent.action.BATTERY_CHANGED"/>
</intent-filter>
</receiver>
Score creedengo: 5sur5
Taking into account when the device is entering or exiting the power save mode is higly desirable for the battery life.
It implies the existence of a broadcast receiver registered on the action ACTION_POWER_SAVE_MODE_CHANGED, or programmatically with a call to PowerManager#isPowerSaveMode().
<receiver android:name="org.greencodeinitiative.testapp.core.service.MyReceiver">
<intent-filter>
<action android:name="android.intent.action.BATTERY_CHANGED"/>
</intent-filter>
</receiver>