Is there an event to detect when the screen dims?

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.)?

+8
android
source share
3 answers

As far as I can see from the Android source code, sending a screen brightness status does not send a broadcast notification.

+2
source share

If you use WakeLock to keep your screen dim. You can check if Wake Wake is activated using the .isHeld () method.

0
source share

Get a screen timeout, and then take about -5 seconds

-one
source share

All Articles