I am trying to set the screen brightness from a widget. We know this is easily possible since tons of widgets do this already, but how.....
In a service I call from
For the blackscreen, set a theme on the activity, containing this:
Thanks Sebastian for the answer, I've copied it in here.