0

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 :)

4

1 に答える 1

0

ストロボ ライト アプリは、画面の明るさを変更しません。彼らは色を変更し、通常は黒と白の背景を非常に素早く切り替えます。あなたの目的がストロボライトを作ることであるならば、あなたはそうすべきです。

于 2013-06-19T19:15:31.313 に答える