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 komentar:
Posting Komentar