开发者

backlight in android

开发者 https://www.devze.com 2022-12-21 13:53 出处:网络
In my android app , I have a menu for backlight options ,and I want that when the user selectsone like \" during this operation \" to have the backlight on during that operation. Could I be be shown a

In my android app , I have a menu for backlight options ,and I want that when the user selects one like " during this operation " to have the backlight on during that operation. Could I be be shown a way of accomplish开发者_StackOverflow社区ing this . My problem is the that I don't know how to manipulate the backlight and how to properly arrange this in the code.

Thanks


Check android.os.PowerManager

You probably should also have WAKE_LOCK permission in manifest


If you just want to keep the screen awake while on a particular activity, please see Force Screen On

0

精彩评论

暂无评论...
验证码 换一张
取 消