I'm using various android devices for home-automation control and monitoring, and want to have one by my bed. One thing I want to use it for is a light-based alarm clock, but I need to control the backlight brightness.

Ideally I'd like to control this from javascript, even if that means having another app run locally that gives javascript a roundabout-API to the brightness.

Overlaying a black window won't do; it still lets light through.

How can I control the screen brightness programmatically?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.