Feb 21, 2011

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.

No comments:

Post a Comment

Infolinks In Text Ads