Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an event to detect when the screen dims?

Tags:

android

I'm using a SCREEN_DIM_WAKE_LOCK and so my never turns off. It just goes from full brightness to dim.

Is there any way for me to detect when the screen gets dim (event, receiver, etc.) ?

like image 715
bluediapente Avatar asked May 06 '11 19:05

bluediapente


1 Answers

As far as I can see from Android's source code, there is no broadcast notification send when screen brightness state is changed.

like image 197
inazaruk Avatar answered Sep 19 '22 15:09

inazaruk