kinscore wrote:Actually it "does" work...just very slowly. Much too slowly to be useful in the way I wanted to use it (for a flashlight/morse code signaling program--for which I can set the background color to black, but that isn't as dark and actually increases battery consumption).
So I looked into the source code for the built-in settings application (git://git.source.android.com/platform/p ... ttings.git).
It doesn't use Settings.System until "OK" is pressed. It does the real-time brightness setting with non-public IHardwareService and ServiceManager.
So, if a program is to set the brightness "some time in the future", system-wide, it can go ahead and use Settings.System. If it is to set the brightness "right now", locally, it can't (as far as I can tell). It has to wait until Android gets a public hardware service or similar API.
spirolateral wrote:i'll might try that out. i downloaded a "flashlight" app the other day and it increased my brightness. there is a way to do this.
kinscore wrote:spirolateral wrote:i'll might try that out. i downloaded a "flashlight" app the other day and it increased my brightness. there is a way to do this.
Ah, yes, increasing brightness is easy. Just use a wakelock with the screen bright flag. Dimming or turning off the backlight, on the other hand, is either delayed, impossible or requiring weird tricks as I've said.
Users browsing this forum: No registered users and 10 guests