• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Screen Brightness Listener

I'm in the middle of developing an application that requires listening to the screen brightness continuously. I have tried comparing values...etc but nothing seems to be efficient. Is there something I'm missing out? like a listener or some form of such.
 
I don't think there are any services that provide a screen brightness listener/callback.

In the absence of such a service, the best you can do is start a long running background thread that continuously sleeps, and periodically checks the brightness setting.
 
I don't think there are any services that provide a screen brightness listener/callback.

In the absence of such a service, the best you can do is start a long running background thread that continuously sleeps, and periodically checks the brightness setting.

The reason behind the desperate search for a screen listener is that I need to synchronize two different application without overwhelming the system. Would be able to advice on that ?
 
What do you mean by 'synchronize two different applications'?
 
Back
Top Bottom