StupidBeauty
Read times:846Posted at:Sat Aug 31 21:05:43 2013
- no title specified

转载:如何代码设置屏幕背光亮度?

使用WindowManager可设置当前Acitivity的屏幕亮度。

http://www.eoeandroid.com/thread-226573-1-1.html

亮点:

单个activity中的背光控制。
A.屏幕
WindowManager.LayoutParams params = getWindow().getAttributes();
params.flags |= WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON;
params.screenBrightness = 0;
getWindow().setAttributes(params);

忙得冒屎的办公室女郎

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands