How to develop a screen filter app (for brightness setting) - Android Software/Hacking General [Developers Only]

Hi,
You would have probably come across apps to adjust display brightness by applying a "filter" on the screen, e.g. Screen Filter - does anyone know how to develop an app like this?
I have searched high and low, and cant find out how to get started - any help would be amazing.
Thanks.

Im interested in this topic too Im currently developing an app where the app is active 5-10 min, and its not suitable to let the lockscreen be active. However, its likely that users, and the battery, wants to dim the brightness down, say 50%. But i cant find a way to programaticly to that. Is this so called screenfilter the solution?

Hey, I dont think this is what you are looking for pippi - this Screen Filter app is used to lower brightness beyond what the phone normally allows.
Its probably something like this you need to code...
"WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 100 / 100.0f;
getWindow().setAttributes(lp);"
Can anyone help me with my question? thanks...

Aha, thank you very much! Ill look at that tomorrow, got some stuff to do before new years eve, cheers!

Related

[APP] Extra Dimmer Switch - UPDATE 10-03-10 - disabling/enabling of 'Auto Brightness'

Hi People,
I had a problem, I wanted to read a book and browse web sites on my N1 at night, whilst girlfriend was trying to sleep. The Nexus One even on its dimmest setting is quite bright at night and annoys said gf, so I was looking for a way to get the screen dimmer than stock levels, similar to the night mode functionality.
Turns out the job was far more technical than I first thought, and beyond my capabilities. PM'd Cyan, but as you might expect he seems too busy with other projects to help, no surprise there!
The help came from my Android Fandroid mate Richard over at Geekyouup!
He has kindly created an application that will reduce the brightness of my beloved Nexus one to level 10 (the default minimum is 30) from what ever brightness level you are currently on. Click the icon again, and it will restore your brightness to previous levels.
Unfortunatley, due to Android fail safes, he was unable to get the level below 10, (yet) but its a step better than stock minimum for me.
I have attached the apk for your night time pleasure here.
ALL the work was done by my man Rich Hyndman (@geekyouup)
You can also get the version here:
http://geekyouup.com/dimmer.apk
P.S I love the slightly off balanced light bulb icon Rich!!
very useful
thanks!
Just tried it, works great. I've cursed under my breath about wishing I could lower the brightness.. what a wonderful idea.
Hi thanks for sharing. However it does not work when auto brightness is enabled. Is it possible to suggest to the author to support it as well?
On: Toggle off auto brightness and dim.
Off: Toggle on auto brightness.
Wysie - could do, I'm here. I know about the issue when Auto-brightness is enabled, working on it right now....
ok, version 1.0.2 is attached, now supports Automatic Brightness toggling as per Wysie's suggestion. If Automatic Brightness is on it disables and sets screen dim, second press re-enables Automatic Brightness.
Also available in Android Market and at the web link in dipeshb's post (as a 'Juniour Member' I can't post links)
Downloaded from the market and it works great. Thanks mate.

[Q]How to change display brightness by %?

Hello there. I would like to know if there's any app that enable Vox users to set display bright by percentage, or like High, Medium, Low.
I wish I could set my phone to stay always at the brightness level it gets after 30 seconds without use . I think the screen is to bright normally, and really want it to be in a low level.
Sorry for bad english, hope You guys could understand.
Thanks in advance.
"Tornado LowLight" also works on the Vox. Search for that.
I also recently discovered a tool called "LightToggle". It originates from Far East and may work without staying resident. Copy the files in the ZIP to the \Program files folder on the device and try the different .lnk files. For the Vox I noticed that the LT31.lnk toggles half/full brightness. Not sure if any system action will reset brightness before toggle again - just try out. Find it attached below.
Mind that the VOX driver only supports full and dimmed light level - nothing else.
Thanks a lot tobbie! I'll be trying it right now.
Mrkblo said:
Thanks a lot tobbie! I'll be trying it right now.
Click to expand...
Click to collapse
This app called half back light is designed for vox. It is good.

[REQ] CM7 auto brightness customization

CM7 is a great ROM but for me, Sense roms have more advantages on the evo. One of the advantages of CM7 is the ability to completely customize the auto brightness function. When I ran CM7 nightlies I spent about an hour dimming the lights to program it perfectly. When you're in a dark room you don't want to pull your phone out of your pocket and blind everyone around you. When you're out in the sun, you want to be able to actually see the screen. Unfortunately, it seems like the sense auto brightness does a horrible job of getting the phone really dim in the dark and doesn't react quick enough in the sun. There are so many widgets out there for people to quickly adjust their screen brightness because the auto isn't good enough. This is ridiculous! The evo 4G is capable of having the perfect auto-brightness. We shouldn't have to be stumbling to click on a widget to self adjust the brightness.
I've searched all over the interwebs and nothing like this exists for non-CM7 Android devices. Someone please either port the CM7 auto brightness customization settings or create an app!!! Something similar to the old school Lumens app from Windows Mobile. You would be a hero to many.
Also, I would love to do this but I have zero programming skills.
I created an app that does this exactly (it's in beta at the moment):
https://market.android.com/details?id=com.vito.lux
How well it performs depends on how good the light sensor on your device is. The app does have data filtering to try and get better readings from bad sensors, though.
Matteo1219 said:
CM7 is a great ROM but for me, Sense roms have more advantages on the evo. One of the advantages of CM7 is the ability to completely customize the auto brightness function. When I ran CM7 nightlies I spent about an hour dimming the lights to program it perfectly. When you're in a dark room you don't want to pull your phone out of your pocket and blind everyone around you. When you're out in the sun, you want to be able to actually see the screen. Unfortunately, it seems like the sense auto brightness does a horrible job of getting the phone really dim in the dark and doesn't react quick enough in the sun. There are so many widgets out there for people to quickly adjust their screen brightness because the auto isn't good enough. This is ridiculous! The evo 4G is capable of having the perfect auto-brightness. We shouldn't have to be stumbling to click on a widget to self adjust the brightness.
I've searched all over the interwebs and nothing like this exists for non-CM7 Android devices. Someone please either port the CM7 auto brightness customization settings or create an app!!! Something similar to the old school Lumens app from Windows Mobile. You would be a hero to many.
Also, I would love to do this but I have zero programming skills.
Click to expand...
Click to collapse
Just installed CM7.1.0 and haven't yet found all the settings but stumbled upon some good ones already. A brightness one would be great because I would LOVE for my phone to go brighter in direct sunlight and dimmer in controlled areas and in the dark. I want to tweak mine as you described. Is this in the Cyanogenmod settings within the Menu->Settings menu or is it somewhere else?
OstrichSak said:
Just installed CM7.1.0 and haven't yet found all the settings but stumbled upon some good ones already. A brightness one would be great because I would LOVE for my phone to go brighter in direct sunlight and dimmer in controlled areas and in the dark. I want to tweak mine as you described. Is this in the Cyanogenmod settings within the Menu->Settings menu or is it somewhere else?
Click to expand...
Click to collapse
If I remember correctly, it is something like... Menu-> Settings-> Cyanogenmod Settings-> Display
It's in there somewhere!
Matteo1219 said:
If I remember correctly, it is something like... Menu-> Settings-> Cyanogenmod Settings-> Display
It's in there somewhere!
Click to expand...
Click to collapse
Yeah, and look for auto, and 'other' there is awesome control in there. You can even control how bright your capacitive buttons light up, and what level of light they respond to.
Really nice feature.
To the poster who is working on this, I'll def be having a look. Thanks.
Sent from my PC36100 using xda premium

Lower backlight

I've looked around and haven't found much, hopefully my Google skills aren't weak.
Other than using a screen dinner app, is there a way to actually decrease the backlight further? I can do some more complicated stuff like decompiling apks and what not. I just don't know if there's a way to make the range of auto brightness much lower.
I use my phone a lot at night, and turning the screen on is like getting punched in the eyes, andwhile I'm using it I feel my eyes strained.
Sent from my SAMSUNG-SGH-I727 using xda premium
try an app called lux. Its not free, but it did wonders for my battery life
Another option is JuiceDefender Ultimate... you can tweak the response curve to obtain lower brightness levels in low light conditions... it has a ton of options.
free app called screen filter, does what juice defender does, but its free. and it goes REALLY low .... to the point you will see "blots" of dots on the screen
fongz27 said:
free app called screen filter, does what juice defender does, but its free. and it goes REALLY low .... to the point you will see "blots" of dots on the screen
Click to expand...
Click to collapse
Screen Filter just puts a filter over what your phone is displaying instead of actually physically lowering the backlight. It makes things look odd (to me) and it doesn't actually do anything for battery life unless I'm mistaken.
I mean something that actually allows you to lower the backlight further.
technically speaking becuz it's putting a software overlay on, the phone physically uses less power, so they do work. You lose some contrast between certain greys and farms though. I highly recommend u look into the "Lux" paid app I was telling u about. Its the way auto brightness should be, with user accessible custom config. The author is so good that if at anytime u decide the software isn't for u, u get a full refund, no questions asked, even if its a month after, let alone a couple minutes past the 15 min return period
icenight89 said:
technically speaking becuz it's putting a software overlay on, the phone physically uses less power, so they do work. You lose some contrast between certain greys and farms though. I highly recommend u look into the "Lux" paid app I was telling u about. Its the way auto brightness should be, with user accessible custom config. The author is so good that if at anytime u decide the software isn't for u, u get a full refund, no questions asked, even if its a month after, let alone a couple minutes past the 15 min return period
Click to expand...
Click to collapse
I'm not sure what you meant by becuz it's putting a software overlay.
I have realized that having the screen darker (even just displaying a darker image, like what Screen Filter does) uses less power because of the way that our screen works. On an LCD screen however, it would actually use more power.
I'm trying lux out right now, it seems promising.
when you use the term "physically" i take it as you want a PHYSICAL mod to the phone; good luck with that. Screen filter does me just fine, it does the same effect as many other "battery savers" do.
any apks, apps, etc are all SOFTWARE mod to the display screen / brightness. You are venturing into a world of unknown if the apps aren't appealing to your taste.
Keep in mind, the SR is S AMOLED, not just a regular LED / LCD display.
fongz27 said:
when you use the term "physically" i take it as you want a PHYSICAL mod to the phone; good luck with that. Screen filter does me just fine, it does the same effect as many other "battery savers" do.
any apks, apps, etc are all SOFTWARE mod to the display screen / brightness. You are venturing into a world of unknown if the apps aren't appealing to your taste.
Keep in mind, the SR is S AMOLED, not just a regular LED / LCD display.
Click to expand...
Click to collapse
No. By physically lowering the brightness of the backlight I meant that....well the intensity of the backlight is actually physically lower as opposed to seeing everything through a grey mist (how I see the screen filter thing).
Also, try to contribute to the purpose of this thread instead of insisting screen filter is good when I've specified that's not the solution I'm looking for.
Speaking of useful contributions to the thread..
Lux is really nice. I like it. I can't tell if the sub zero brightness is the backlight actually being PHYSICALLY (by means of software, don't worry) less bright or if it is using a filter where I just can't tell. Either way, if I can't tell then it's not bugging me. Thanks for the tip, after a day of setting it up and whatnot it's really nice.
Sent from my SAMSUNG-SGH-I727 using xda premium
.uhm.... don't be decieved by the name "screen filter" ; that is just the given name; the method of adjusting brightness remains the same as many other "filters" and "brightness" controllers.
Searched "lux" on the market and a lot of them have poor reviews, screen filter has over 9,000 5-star reviews so I'm pretty sure it's working...
You try screen filter and drop that "filter" below 20%; so if it's not the "brightness" being adjusted? what is being adjusted? color? gamma? contrast? sharpness? color intensity?
Again, I'll let the reviews speak for themselves; my main point is, SOFTWARE = SOFTWARE. Android is the system; the software manipulates the settings of the system... so unless Lux is somehow hacking unknown system values / physical hardware, software = software.
Another vote for screen filter by me. Period.
fongz27 said:
.uhm.... don't be decieved by the name "screen filter" ; that is just the given name; the method of adjusting brightness remains the same as many other "filters" and "brightness" controllers.
Searched "lux" on the market and a lot of them have poor reviews, screen filter has over 9,000 5-star reviews so I'm pretty sure it's working...
You try screen filter and drop that "filter" below 20%; so if it's not the "brightness" being adjusted? what is being adjusted? color? gamma? contrast? sharpness? color intensity?
Again, I'll let the reviews speak for themselves; my main point is, SOFTWARE = SOFTWARE. Android is the system; the software manipulates the settings of the system... so unless Lux is somehow hacking unknown system values / physical hardware, software = software.
Click to expand...
Click to collapse
I'm glad that you are using the reviews for random apps with the name lux in them as grounds for proving your point. Just in case if you care (which I doubt given your hostility) the app that I'm using is Lux Auto Brightness. Very nice.
Oh, and don't worry. The reviews give it a 4.4, not as good as screen filter but that doesn't seem to me to fall under 'poor reviews'.
Again, I wanted to lower the BACKLIGHT. Which, in turn, means a lower brightness. I wanted an app that would allow me to decrease the physical brightness of the backlight. How can you not understand this? Screen Filter does not do this, it puts a filter over the screen.
It even says, right in the description for Screen Filter "Applies a shade that acts as a dimmer to ensure your eyes don't hurt."
That is NOT WHAT I WANT.
Lux Auto Brightness actually does what I wanted - it allowed me to lower the backlight even further, making my phone less bright WITHOUT putting a filter/shade/softwarewhatever over the STDOUT. Goodness.
Also, thank you for specifying that software = software, I have no idea what kind of mess I would have gotten into without knowing that.

[Q] Quickest way to 100% brightness...

Hi,
Im looking for an app or widget that will allow me to set my brightness to 100% the fastest way.
I find it very hard to blindly go through my phone just to set it to a brightness level where I can actually see things when i go outdoors.
I've tried an app that lets me shake my phone to set it to 100% and shake it again to set it to auto. Unfortunately, the sensitivity isn't very good. I find it setting my phone to 100% even if i dont want it to.
Currently, i'm using an app called Invisibright that allows me to run the app blindly from the notification area and do a quick swipe up on the screen to increase brightness. I find it very handy at the moment but there is still those extra steps that im looking to eliminate.
Any other ideas will very much be welcomed.
Thanks

Categories

Resources