I\'m trying to update the display brightness from a widget but i have some problems.
To change brightness level, i use:
Settings.System.putInt(contex
First, the value to modify in LayoutParams is screenBrightness. You'll then have to do a window.setAttributes to apply it. As GeekYouUp said, you can make a dummy activity to get your Window object.