Questions tagged [screen-brightness]

141 questions
1
vote
2 answers

change screen brightness when autobrightness enabled

The code below to change screen brightness is not working when auto brightness of device is enabled: Window w = getWindow(); WindowManager.LayoutParams lp = w.getAttributes(); lp.screenBrightness=0.09f; getWindow().setAttributes(lp); How to change…
odr_m9611
  • 195
  • 3
  • 16
1
vote
1 answer

Updating the screen brightness in android

here's my code to change the brightness settings of my phone. After running the app, if I go to the settings>display>brightness of my phone, I see the value changed however not 'updated'. So when I click on the dialog box's ok/cancel button, that's…
Parikksit Bhisay
  • 163
  • 1
  • 5
  • 20
1
vote
1 answer

Screen bright on OnToucListener?

I am building an app that has a "master" button in the middle of the screen. Whenever the button is pressed(AND HELD), the app should be dimming the screen(to lowest level possible), and when the button is released, it should reset the screen to…
borislemke
  • 8,446
  • 5
  • 41
  • 54
1
vote
3 answers

Why does my Android application drain battery?

I've written a simple application that displays some text and a little bit of graphics on screen. I'm using a Nexus 7, this is for an installation, and as such needs to be on continuously as much as 12 hours a day. However, despite being plugged in…
ericsoco
  • 24,913
  • 29
  • 97
  • 127
1
vote
2 answers

Change brightness of jframe

I have a program, and it runs in a jframe in full screen exclusive mode. I am trying to change the brightness of the jframe. I was wondering how i would implement this. I thought it might be possible to change all the colors of the images getting…
Josh Sobel
  • 1,268
  • 3
  • 14
  • 27
1
vote
3 answers

android app touch unrensponsiveness

I have developed an application that is used very intensively for hours, makes a lot of web services calls, uses a lot of async tasks and does a lot of operations on an sqlite database. The problem is that absolutely randomly the display dims, as if…
Apperside
  • 3,542
  • 2
  • 38
  • 65
1
vote
0 answers

Android - Keeping screen brightness through entire application

I currently have a button in my application that changes the screen brightness, but when I leave that activity, it resets the screen brightness back to normal. I want it to set the brightness throughout the entire application, but go back to normal…
Eichhörnchen
  • 592
  • 2
  • 12
  • 27
1
vote
2 answers

how to set the screen brightness and Font-Scale in android

iam setting the device settings into certain values. i want to adjust the screen brightness and the Font-Scale iam using the following code: //For Font-Scale Settings.System.putFloat(this.getContentResolver(),Settings.System.FONT_SCALE,(float)…
AnasBakez
  • 1,230
  • 4
  • 20
  • 36
1
vote
1 answer

Control Screen Brightness in WIndows Phone 7

Is it possible to to use c# to change the screen brightness? I know some apps can control it so if there is not a direct way then does anyone know of a workaround? Thanks
nat45928
  • 259
  • 1
  • 6
  • 20
1
vote
2 answers

How to dim a screen on click of a button in android?

How do i darken/dim the current screen on click of a button. PLease help me.
SANDHYA
  • 771
  • 7
  • 18
  • 27
0
votes
0 answers

How to enable and disable Screen time out in Custom Android Build

I am using a custom AOSP build with an system application, with single activity, where the user can enable or disable screen time off. The lock screen is disables from : true at…
0
votes
1 answer

How can I detect the change in brightness on Android and use it simultaneously?

I added SeekBar in Android app. I'm able to change the brightness of the system using SeekBar. binding.seekBar.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener { @RequiresApi(api = Build.VERSION_CODES.M) …
Halil Ozel
  • 2,482
  • 3
  • 17
  • 32
0
votes
0 answers

Using python wmi, Windows 11 slowly changes brightness, is it possible to do immediately?

I'm working on a python script where I need to interact with Windows 11 wmi or screen_brightness_control, and though I can get it to change the screen brightness, it does so with a fade, even though I'm using set_brightness(). This seems to be a…
Joe Dimagio
  • 55
  • 1
  • 1
  • 6
0
votes
1 answer

How to map cd/m2 with Android screen brightness

The Android Official documentation defines SCREEN_BRIGHTNESS range as 0-255. How can I map it with cd/m2 (candela/meter square) ? I need to make between 200 cd/m2 to 400 cd/m2 with 50 as interval.
0
votes
1 answer

How to listener brightness value after setting brightness auto mode in Android?

I want current brightness level after setting brightness auto mode. I changed screen brightness, but did not receive the changed brightness level value. I use Async callable for receive changed brightness level in completed block, but not changed…
neander
  • 11
  • 1