Change Screen Brightness

To change screen brightness:

WindowManager.LayoutParams layoutParams = getWindow().getAttributes();
layoutParams.buttonBrightness = value;
getWindow().setAttributes(layoutParams);


where value is float between 0 to 1, value of less than 0 to use the preferred default screen brightness.

0 Response to "Change Screen Brightness"

Posting Komentar