Questions tagged [screen-brightness]
141 questions
1
vote
2 answers
Brightness goes normal after changing activity
I was trying to switch between 'full brightness' and 'phones normal brightness' by using a switch button in my main activity.
I successfully handled the switching of brightness by using this code:
switchButton.setOnCheckedChangeListener(new…

Sayem
- 78
- 1
- 10
1
vote
1 answer
How turn On/Off android display backlight using C# only in Unity3d
Anybody knows how to turn On/Off android display backlight using C# only in Unity? I don't like plugins, and I don't want to make one of my own.
I know that you can disable the display while using the proximity sensor... but i don't know how to do…

MadMac
- 11
- 2
1
vote
1 answer
Front camera brightness get very low when start recording in custom camera
I'm working in a custom video recorder which contain both front and back camera. When i start recording in back camera no problem, when i start recording in front camera brightness of the camera reduced.
i have camera switch button to change front…

Sasi
- 445
- 4
- 19
1
vote
1 answer
SecurityException for WRITE_SETTINGS permission while adjusting screen brightness
App has button in the middle That switches between brightness, but right now, if button is clicked twice and i try clicking it again it does not function anymore. Does anyone know how to put screen brightness to previous state before the button was…

Kenertj
- 57
- 7
1
vote
1 answer
GetMonitorBrightness() crashes with Access Violation
I'm trying to set up a small programm to adjust Monitor Brightness by the current room brightness.
I followed the instructions from MSDN and set up this:
cout << "Legen Sie das Fenster bitte auf den zu steuernden…

DoktorMerlin
- 55
- 6
1
vote
0 answers
how to get Screen dim events in android
I want to get the dim state of the screen from bright,but I don't know how.
there are broadcast for screen_on and screen_off,but there is no broadcast for screen_dim,is there any way to get screen_dim?
the following way doesn't work:
save value…

lily
- 21
- 3
1
vote
2 answers
How to change brightness?
I run Runnable which should gradually change brightness
private Runnable runnable = new Runnable(){
@Override
public void run(){
if(intensity < 1){ intensity += intensityGrow; }
if(intensity > 1){ intensity =…

Yarh
- 4,459
- 5
- 45
- 95
1
vote
1 answer
Can't keep Screen brightness setting in android 5.0++
I use this code to reduce screen brightness but it only work in android 4.4--. When I test in android 5++ then it work when Activity open, after I finish/close Activity then the screen brightness return default setting before. How can I keep screen…

Ken Kem
- 635
- 1
- 6
- 13
1
vote
1 answer
How to Change Brightness Programmatically From Lockscreen
First want to give context of my app:
when a call is incoming the screen will turn on and will brighten up.
same for a text, the screen will turn on for a second.
What I want to do is if a call or text comes in that the screen brightness stays as…

Andrew Irwin
- 691
- 12
- 40
1
vote
2 answers
Reset users default app brightness in applicationDidEnterBackground with swift
I've been trying to reset the user's default device brightness in the app delegate method: applicationDidEnterBackground by using this code:
UIScreen.mainScreen().brightness = screenBrightness!
The code gets called but the brightness is not reset. …

Charlie S
- 4,366
- 6
- 59
- 97
1
vote
1 answer
Adaptive brightness in android
How can I implement adaptive brightness setting through my application to android device.
I am able to change brightness level in manual mode. In case of automatic mode I am using sensor manager to detect ambient light sensor and according to light…

user3207655
- 188
- 2
- 15
1
vote
1 answer
Android- screen brightness diminishes on launch
I am developing an android app in which i am just opening a website in a webview.
Everything was working fine, but suddenly i noticed that when i launch my app, phone's screen brightness diminishes automatically to a slightly low than normal. But…

Hirdesh Vishwdewa
- 2,334
- 1
- 19
- 33
1
vote
0 answers
Control volume and brightness use GestureDetector in android
As title, I am created a player, and i want change volume and brightness by way use GestureDetector as Mx Player application. (swipe left bottom <-> top to change brightness and swipe right bottom <-> top to change volume )
Please help me.
Thanks…

MrSiro
- 281
- 1
- 4
- 16
1
vote
0 answers
Manipulation of the backlight in a embedded linux device is unstable
I want to control the backlight value of a LCD monitor in a embedded linux device. Doing researches throughout the internet I found a couple of references saying that the file called backlight inside the backlight's driver folder in sys/classes…

Momergil
- 2,213
- 5
- 29
- 59
1
vote
1 answer
Adjust brightness of BB Device through programmatically
I am naive in BB platform. I own a blackberry Z10. I want to develop an app that should provide me following requirements,
Change phone brightness from the app.
The issue here is when I change brightness it works untill I am in the app. When I exit…

IndiesApps
- 81
- 6