Set brightness below the system limit using alpha and save value

view story

http://stackoverflow.com – I've been trying to set the brightness under the limit of Android settings. There are two similar apps in Google Play doing this: Shades - http://xurl.es/55mgq Screen Filter - http://xurl.es/0lxgn The second one, even allows to use the phone with a black screen, just what I need in my app. There are a lot of other questions about brightness but not to set it under this system limit, and I've found one question asking almost the same but not helping me: Brightness Screen Filter So after a lot of search I've got following code: int brightness=0; //0 to 255, so I set it to a low level (not (HowTos)