Update Display Brightness on Android after changing it programmatically

前端 未结 3 1471
旧巷少年郎
旧巷少年郎 2020-12-15 11:02

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         


        
3条回答
  •  没有蜡笔的小新
    2020-12-15 11:24

    I had a similar issue and just created an Activity with no UI to do the brightness change, used an intent to run it from the App Widget.

提交回复
热议问题