I'm working on an app that needs to turn on and turn off the backlight of the screen fast, very fast. Something like off for 10ms, and then on for +-1ms. I have tried to use this code with a handler and a runnable:
fieldScreenBrightness.setFloat(lp, brightness);
this.getWindow().setAttributes(lp);
It work's fine, but not fast enough. It takes like 2 seconds to change the brightness from 0 to 1. I know for sure there is a different way to do that because there are apps that makes the screen work as a strobe light.
Thanks :)