damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 804 forks source link

Allow setting and disabling of auto-brightmess #210

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:27

What should be supported?
Setting display auto-brightness, rather than just setting a constant brightness 
level. 
When disabling auto-brightness, the brightness level is implicitly set some 
value. I suppose the implementation should be consistent with the Android SDK. 
If that's not specified, I propose that it should be set to the current value 
of brightness. 

Original issue reported on code.google.com by te.richa...@gmail.com on 13 Sep 2010 at 4:05

Copied from original issue: damonkohler/android-scripting#429

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:27

It's possible to toggle auto brightness on or off and change brightness level 
with the regular SDK easily enough but the problem is that it doesn't take 
affect until the Settings activity is opened, the values then update and the 
brightness changes, for now a workaround is to call the settings activity to 
"remind" it to update.  Maybe it's different on older verisons of Android, I'm 
running a Dell Streak with Froyo

Original comment by jamzs...@gmail.com on 6 Jan 2011 at 10:23