Questions tagged [screen-brightness]
141 questions
2
votes
0 answers
How to programmatically set screen brightness on Apple Watch
In iOS I can set phone's screen brightness as follows:
UIScreen.main.brightness = 0.6
Is there any similar functional in watchOS?

Nick
- 3,205
- 9
- 57
- 108
2
votes
0 answers
python WMI screen brightness adjuster gets error 0x8004100c
I'm currently working on a script that creates a tray icon that allows the user to adjust screen brightness through menu options. The source code, written in python 3.6.8, can be found as a paste HERE. There seems to be an error message coming up…

im.ri0t
- 43
- 1
- 6
2
votes
2 answers
How do you stop the screen from dimming in WP7?
I'm creating a simple flash light app. Whenever I turn the screen all white, the screen dims a little, even if I turn off auto brightness and set the brightness to high.
Does anyone know why this is happening and how I can disable this…

Zain Rizvi
- 23,586
- 22
- 91
- 133
2
votes
3 answers
Is there a way to query the current brightness level of a the MacBook LCD?
The idea being that, once the brightness passes a certain level, one could switch to a different visual scheme to give greater visibility. Also, if it could be some sort of listener type thing, that would be even better, but I'll take what I can…

Paul Wicks
- 62,960
- 55
- 119
- 146
2
votes
0 answers
ADB to Toggle Adaptive brightness button
Am running a ADB on android to check the toggle of Adaptive brightness inside display settings. I tried using adb shell settings put system screen_brightness_mode 0. This works, but the button didn't get toggled(enable/disabled) on the UI. I want to…

Sathish Vinayk
- 21
- 3
2
votes
3 answers
Set Android screen brightness in Kotlin in one line (versus Java)
To set a minimum screen brightness in Android Java:
final WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_OFF;
getWindow().setAttributes(lp);
To change screen…

TechAurelian
- 5,561
- 5
- 50
- 65
2
votes
0 answers
Android 2.2: Screen doesn't wake up after timeout when brightness set to zero
Im using the following code to adjust the brightness of the screen:
public void SetBright(float value) {
Window mywindow = getWindow();
WindowManager.LayoutParams lp = mywindow.getAttributes();
lp.screenBrightness = value;
…

Johan
- 427
- 2
- 7
- 14
2
votes
1 answer
SCREEN_BRIGHTNESS_MODE does not work with permission
In my app I want to change the SCREEN_BRIGHTNESS_MODE (and set another value). I added the permission in the AndroidManifest.xml (double checked with other parameters in the file). The value of the mode should be changed, when a button was…

Tobias Lukoschek
- 355
- 1
- 3
- 20
2
votes
1 answer
How to adjust device brightness programmatically using SeekBar?
I have two seekbars in my settings application, one for sound and one for brightness. My sound seekbar does change the media volume as I want it to and it stays changed in other activities and applications but the brightness seekbar does not stay…

GChanna
- 37
- 2
- 11
2
votes
0 answers
Adjust screen brightness, contrast, and gamma
I'm a beginner in C# and to practice I'm building tools that are useful to me. Now, I want to build an application that can adjust screen brightness, contrast, and gamma. Something similar to Darkfix.
I have searched for something to get me started…

akinuri
- 10,690
- 10
- 65
- 102
2
votes
2 answers
Change adaptive brightness level programmatically
How can I change the adaptive brightness level programmatically, on Android Lollipop?
I know how to change the manual brightness level, and to toggle on or off the adaptive brightness. It is done like that:
Settings.System.putInt(cr,…

Paschalis
- 11,929
- 9
- 52
- 82
2
votes
1 answer
How to increase brightness in a particular region in android
Bwlow code is increasing the brightness of whole screen but I am taking a particular region in XML (like taking Linear Layout of 100*100), and I want to increase the brightness of that particular (Linear Layout) region only not the whole screen.
…

abhi
- 154
- 16
2
votes
1 answer
How to decrease brightness like screen filter
I have been trying to create a simple app like this but I failed.
What should I do based on this answer? The code I use:
MainActivity.java
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle…

Device
- 993
- 3
- 11
- 26
2
votes
2 answers
screen brightness seekbar not working
In my app I added a SeekBar which controls the screen brightness. It works some what fine .
I get the device's screen brightness in Oncreate() and set the progress of the SeekBar.
But when I change the seekbar progress , when I set it to the…

Sandeep R
- 2,284
- 3
- 25
- 51
2
votes
0 answers
How to custom the Android default Auto-Brightness Array Values?
As we know , the android system realizing logic of the auto-brightness is like this(By LightSensor):
frameworks/base/services/java/com/android/server/power/DisplayPowerController.java
public DisplayPowerController(Looper looper, Context context,…

Jerikc XIONG
- 3,517
- 5
- 42
- 71