Questions tagged [screen-brightness]
141 questions
0
votes
2 answers
How to set the screen brightness to dim
at present the following code is setting the screen brightness level to 0 but it is not dimming the screen.can somebody help me out.the android version is 4.0.
thanks in advance.
android.provider.Settings.System.putInt(
…

akshaya
- 1
- 1
0
votes
0 answers
How to set screen brightness on a machine where WmiSetBrightness is not supported?
I'm trying to find a way to set screen brightness programmatically. Some existing SO answers point to this article. However, when I try executing Powershell code from that article, I get errors:
Get-CimInstance -Namespace root/WMI -ClassName…

Violet Giraffe
- 32,368
- 48
- 194
- 335
0
votes
1 answer
Change Watchface Brightness in Android Wear
How can I change brightness of watch using Android Wear SDK (in my code) while my watch-face is running.
I want to keep brightness lower than the lowest level of Android Wear brightness settings.

AVEbrahimi
- 17,993
- 23
- 107
- 210
0
votes
0 answers
How to change the brightness of the screen permanently?
I've been having a lot of problem making an app to reduce the brightness of the screen of my android mobile below the normal levels for a project. I've done a lot of research and have made a program. The program does reduce the brightness of the…

Syed Ali Mudassar
- 13
- 2
0
votes
1 answer
adjust brightness of LCD to minimum without seekbar in android device
GOOD DAY! im new in android programming, just want to ask this question.
adjusting the brightness of lcd/led to minimum in just 1 button?
i am planning to make an application to save battery life for my own device.
if it is possible please teach me…

kim caboteja
- 55
- 9
0
votes
1 answer
Zeiss VR one screen phone brightness dimming
I just want to know how the screen parameters (especially brightness) of the used phone are taken into account in the Zeiss VR One headset. Does the parameters of the phone are overwritten by some parameters from the headset?
If anybody can answer…

Jennifer
- 1
- 2
0
votes
0 answers
UIScreenBrightnessDidChangeNotification not sending notification for brightness of 0.0
Normally registering for UIScreenBrightnessDidChangeNotification provides notifications when the user finishes sliding the brightness slider in control center.
It appears there is a bug that prevents notifications from being sent when the brightness…

Warpling
- 2,024
- 2
- 22
- 38
0
votes
2 answers
NullpointerException during getWindow().getAttributes();
I am trying to fetch the screen brightness in Android.
The scenario is such that Class A calls a function of Class B as:
Class A:
if(condition is true){
ClassB.function();
}
Class B:
function(){
WindowManager.LayoutParams screenBrightness =…

Amrit
- 2,295
- 4
- 25
- 42
0
votes
2 answers
Wh1602D-tml-ct + arduino screen brightness is very low
I have lcd connected to arduino. Everything works fine, lcd shows info properly, but it has very low brightness. I've connected VO via potentiometer to 5 v and even if potentiometer has 0 Ohm, screen has low brightness.
I've tried to use 2…
0
votes
0 answers
How to Set the Range of Brightness minimum and maximum in android
i want to decrease brightness slowly and gradually and user does not fell the brightness change but problem is every time lux value changed and when i decresee value and use thread to sleep it app hanged. is there any other way to handle lux value…

Aamir
- 141
- 1
- 9
0
votes
1 answer
android dim screen snippet does not work for me
I have the following code which is supposed to be very straight forward, but does not work :
public class DisplayChapter extends ListActivity {
...
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch…

Ivan
- 6,388
- 3
- 24
- 30
0
votes
1 answer
Turning off the iPhone screen
The only way I could find to programmatically turn off (not just dim) the iPhone's screen was by utilizing the UIDevice property proximityMonitoringEnabled, which will automatically turn off the screen if the infrared sensor detects proximity to an…

jbr3zy
- 644
- 3
- 8
0
votes
1 answer
Getting brightness of displayed screen or of a Texture2D - Unity3D
In my project, I need to get the brightness of the screen that is being displayed. to do that, I get a snapshot of the screen and make it as a Texture2D
To get the snapshot and convert it I use this:
public void GetScreen(ref Texture2D screenShot){
…

Victor__
- 97
- 1
- 9
0
votes
1 answer
Android. Change system screen brightness immediately
I am making a widget that changes system screen brightness on click.
I did it like on this post
Everything works well, but changings brightness takes approximately 1 second, but I want to change it immediately, like it does default android…

geNia
- 985
- 9
- 20
0
votes
1 answer
Android: switching screen on and off programmatically at specific time intervals
I need to create an app in which the screen goes off for some time (say 10 seconds) and then goes on, displays a message for 2 seconds and is turned again off. And this keeps on repeating until a button is clicked. (ie. I want to stop this activity…

newbee
- 409
- 2
- 12
- 34