Now i do try again.
I want to change the screen brightness.
I've Tried:
WindowManager.LayoutParams layoutParams = getWindow().getAttributes();
layoutParams.screenBrightness = 0.5F; // set 50% brightness
getWindow().setAttributes(layoutParams);
and seems to work in activity but when I am in service i get that getWindow()
compile error.