Android :: Turn Screen Off / On Or Change Brightness
Oct 28, 2010
I'm trying to control to turn screen off/on. I'm using device HTC G1 (1.6). To turn off screen I write:
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 0f;
getWindow().setAttributes(lp);
But if I want to turn on screen:
lp.screenBrightness = 1f;
getWindow().setAttributes(lp);
Screen not turn on.
if lp.screenBrightness = 0.02f;
screen change bright, but not turn off.
Which right way to control by screen?
View 2 Replies
Oct 26, 2012
Any app that will automatically change the screen brightness based on a defined battery level. Preferably with the option to define how much the screen is dimmed as well.
View 1 Replies
View Related
Nov 15, 2012
I have a htc sensation xl. My brightness control stopped working and I now I can't change the brightness anymore. It doesn't matter if I set to 30% or 100%, the brightness stays the same.I can only adjust the brightness from 0 to 25%. I already did and wipe and stiched a phone.
View 3 Replies
View Related
Sep 21, 2010
So how do you turn on the camera's "flash" LED in Android? (like flashlight apps) - and is it possible to vary the brightness?
search results for "android flash" too polluted by adobe flash..
View 1 Replies
View Related
Apr 28, 2010
Is there any way to turn down the brightness on the soft keys. Mine are annoyingly bright. Especially the menu key. The backlight on the menu key is really bright in the middle and fades out on the ends. I wish the used the symbol instead of spelling it out.
View 11 Replies
View Related
Aug 18, 2010
Does your brightness sensor seem to be a bit too sensitive? When I have my Incredible on auto brightness and I am reading a website I can watch it adjust up and down when there are no changes in the brightness of the room I am in. My fix was to just select a brightness and turn auto off.
View 7 Replies
View Related
Jul 15, 2009
I am trying to resolve following task: smooth change of brightness from 100% to 0%, but can't gain effect of smoothness. Want to emphasize that I am using following approach of brightness change. The recommended one.
WindowManager.LayoutParams lp = window.getAttributes();
lp.screenBrightness = floatPercent;
// 0 - 1 window.setAttributes(lp);
Well, it obviously works, but not smooth. I will describe logic. I have a thread that changes brightness:
while (isRunning()) { Thread.sleep(sleepTime);
spentTime+=sleepTime;
view.post(new Runnable() {
public void run() {
changeBrightness();
} } );
}
We have duration of brightness change, for example 10 seconds. I calculate next value of floatPercent (see code snippet above) the way, sleepTime should always be less than 50ms. So looks like it had to be smooth. But I always get not smooth transition. It relates specially the range of 0% - 5% of brightness. Smoothness is completely lost on this brightness range. What can you propose?
View 3 Replies
View Related
Oct 30, 2010
How can we turn automatic brightness off in android?
View 1 Replies
View Related
Sep 23, 2013
my phone is Samsung Galaxy Mini which is a ldpi device which now runs on an ICS rom. I am trying to change the color for the brightness sliders and volume sliders. Which .xml need to be edited to change the colour..
I decompiled framework-res.apk and changed hex color values under @id/ progress and @id/secondary progress in "progress_horizontal.xml", also changed colors of few pngs in drawable-mdpi in framework,now the progress seek bar has changed the color,but brightness slider color remains the same.
I then decompiled systemui.apk and changed the hex color values under @id/progress in "adi_seekbar.xml",but nothing got changed..
Which .xml is associated with the seek bar for brightness and volume slider? Or should i deal with smali files to change the color of brighntness slider and volume slider..
View 9 Replies
View Related
Oct 27, 2010
Anybody have any idea why this is not working under 2.2? (nexus one)
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 1.0f; getWindow().setAttributes(lp);
And yes, the auto-brightness is disabled under settings.
View 8 Replies
View Related
Nov 17, 2009
I use the following code to dim the screen in one of my apps...
View 2 Replies
View Related
Jul 21, 2010
If you swipe your finger on the notification bar (with the panel still up), you can change your brightness, anywhere that bar is present! Useful when auto brightness isnt on and you need a quick brightness change. I'm not sure if this is a touchwiz feature or an android feature.
View 14 Replies
View Related
Dec 10, 2009
Anyone know a way (or an app) that will change the brightness depending on whether the phone is plugged in or not. I would like it to on full brightness all the time when the USB is plugged in, but use auto-brightness when running on battery.
View 1 Replies
View Related
Mar 13, 2010
To save power I keep the screen brightness down low - what I want to know is - is there any app that overrides this setting when my phone rings so that the screen goes to full brightness so I can tell properly who is calling me?
View 1 Replies
View Related
Oct 1, 2010
I have no clue how to disable the "auto screen brightness" in settings?
View 7 Replies
View Related
Apr 11, 2010
First, can we change the phone to vibrate once instead of twice when receiving an SMS?
Also, is it possible to have the phone turn on its screen briefly when an SMS is received?
I'm talking about while using the native Messages app, not with chompSMS or Handcent.
View 2 Replies
View Related
May 30, 2010
There are apparently at least three different techniques for changing screen brightness in the Android OS. Two of them no longer work post-cupcake and the third accepted technique evidently has a bug. I would like to increase screen brightness at the start of a one-view activity then turn the brightness back to the user setting at the end of the activity. No buttons, no second view or second activity. Just a maxed brightness at start and a return to original brightness setting at the end of the activity. The examples of the current technique using WindowManager.LayoutParams that I have located range from 2 lines of code
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 100 / 100.0f;
getWindow().setAttributes(lp);
To several pages of source code and numerous activities. Is there a simple example of maxing the screen brightness at start that someone can provide a link to?
View 1 Replies
View Related
Jul 23, 2010
So, what do you guys keep your screen brightness level at? I never use auto-brightness. I usually keep mine at 40-50%, day and night
View 10 Replies
View Related
Jul 16, 2009
I am trying to resolve following task: smooth change of brightness from 100% to 0%, but can't gain effect of smoothness. Want to emphasize that I am using following approach of brightness
change. The recommended one.
WindowManager.LayoutParams lp = window.getAttributes();
lp.screenBrightness = floatPercent;
window.setAttributes(lp);
Well, it obviously works, but not smooth. I will describe logic: I have a thread that changes brightness:
while (isRunning()) {
Thread.sleep(sleepTime);
spentTime+=sleepTime;
view.post(new Runnable() {
public void run() {
changeBrightness();
} } );
}
I have duration of brightness change, for example 10 seconds. I calculate next value of floatPercent (see code snippet above) the way, sleepTime should always be less than 50ms.
So looks like it had to be smooth. But I always get not smooth transition. It relates specially the range of 0% - 5% of brightness. Smoothness is completely lost on this brightness range.
View 5 Replies
View Related
Jul 17, 2010
What is yours set on?
View 21 Replies
View Related
Jul 24, 2010
This screen is unnecessarily bright in total darkness- is there a better screen brightness app that can bring the backlight down more than the settings allow?
View 1 Replies
View Related
May 27, 2010
I am very anal about the brightness setting. I keep the setting very low to save battery. While indoors this is almost never a problem but when I go outside I can't see the screen. This makes it very hard to change the brightness. How do other people solve this or am I the only one that has this problem? Does anyone know of a way to map a button (like home button) and change the operation of the long press?
View 31 Replies
View Related
Dec 1, 2010
The screen brightness on my epic will jump from 0% to 75%. I have auto brightness off and the power control widget is not on any of my screens. Does anyone know what is causing this and how I can fix it?
View 4 Replies
View Related
Aug 1, 2010
I set auto brightness off and turn it all the way down cause the screen itself is bright already. but sometimes my brightness setting keep changing. i think an app does that?
View 2 Replies
View Related
Jul 9, 2010
Just got my Galaxy S 2 days ago, loving it so far but does anyone know any app that works with adjusting the brightness for the phone beyond what default brightness setting . Even on the lowest setting it is still so bright, and on the battery use page it say that the display uses 65% of the battery.
View 14 Replies
View Related
Mar 9, 2013
I have a Versus tablet running 4,0 and have accidentally set the screen brightness to 0. I can't see the screen to reset the brightness back up again. The manual says to do a factory rest but needs you to see the screen to do this. Have tried resetting and Android recovery but no effect.
View 1 Replies
View Related
Jul 3, 2013
I'm currently building a custom ROM based on android 4.1.2 and I am having two questions:
1. In Settings -> Display -> Brightness there is no checkbox for automatic screen brightness. Can this feature be added (the check box to turn on/off the automatic brightness)?
2. When I activate the automatic screen brightness (using notification bar toggle) and the battery drains under 15% the brightness is setted to maximum and the Brightness page in settings can't be used, is there a way to fix this?
View 3 Replies
View Related
Aug 3, 2010
Ok so I'm about a week and a half maybe more in with the froyo rom the newst one and while I love it especially the battery life. I'm experiencing some new problems that I don't recall having before. The screen will randomly turn off even though I have the screen delay set to 2 minutes. Other times it will just get dim to about 30 percent regardless of the brightness setting. I'm wondering if this is strict lg a hardware issue or something to do with the rom? I'm just afraid one time its not going to turn back on lol. Also I'm having data lockups where I have to restart the phone at least once a day. I don't recall experiencing this before. A little help and or understanding would be much appreciated on these 2 topics....also does anyone know of any better roms? Like one where wireless tethering app actually works? I have yet to have it work since installing this rom.
View 1 Replies
View Related
Nov 13, 2009
Until now I had my screen set to auto brightness.First, +1 to those who said in other threads that the screen looks even better when you turn that off and put brightness all the way up.But my question here is why, on auto brightness, the screen sometimes increased or decreased brightness when I was using it. It happened all the time. The only thing I can rule out as the cause was time delay, because sometimes it happened as I was typing or just after, and sometimes it would happen after a delay. I think it must be connected to either orientation, or movement, or brightness sensor detecting the ambient light, or something.If I could figure out how to make it stop doing that I would go back to auto-brightness.
View 1 Replies
View Related
Feb 9, 2010
Long time lurker, please no flaming.The Droid has an awesome screen, especially when set at full brightness. However, I typically have it set at the lowest brightness to conserve battery. On my old Windows phone I was able to have the brightness adjust to full when it was plugged in. I've looked for this setting on the Droid and thus far have been unsuccessful in locating this ability.Does anyone know if this setting exists or if there is an app that would do this?
View 11 Replies
View Related