WindowManager.LayoutParams layout = getWindow().getAttributes();
layout.screenBrightness = 1F;
getWindow().setAttributes(layout);
I added this code to button onClick and it worked ! But is there a higher value since the screen didn't light MAX ??
BRIGHTNESS_OVERRIDE_FULL
. Its value is 1.0f – Cioban