I use SCREEN_DIM_WAKE_LOCK and therefore never shuts down. It is just from full brightness to dim.
Is there a way to detect when the screen becomes dim (event, receiver, etc.)?
As far as I can see from the Android source code, sending a screen brightness status does not send a broadcast notification.
If you use WakeLock to keep your screen dim. You can check if Wake Wake is activated using the .isHeld () method.
Get a screen timeout, and then take about -5 seconds