Refreshing the display from a widget?

前端 未结 2 1811
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-11 19:28

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

2条回答
  •  一向
    一向 (楼主)
    2021-01-11 19:45

    For the blackscreen, set a theme on the activity, containing this:

    
    

    Thanks Sebastian for the answer, I've copied it in here.

提交回复
热议问题