如何对Android屏幕亮度进行永久更改?

问题描述

| 我已经使用以下代码设法更改了活动中的屏幕亮度(并扩展了整个应用):
Settings.System.putFloat(this.getContentResolver(),Settings.System.SCREEN_BRIGHTNESS,((float)LocationService.settings.screenBrightness));

WindowManager.LayoutParams lp = getWindow().getAttributes();
float brightness = someValue;
lp.screenBrightness = brightness;
getWindow().setAttributes(lp);
但是,一旦我关闭该应用程序,亮度就会恢复到之前的设置。是否有任何方法可以使这些更改在应用程序的生命周期之外持续存在? 谢谢!     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)