Android: How to turn screen on and off programmatically?

后端 未结 16 2071
醉酒成梦
醉酒成梦 2020-11-22 13:05

Before marking this post as a \"duplicate\", I am writing this post because no other post holds the solution to the problem.

I am trying to turn off the device, then

16条回答
  •  粉色の甜心
    2020-11-22 13:34

    I have tried all above solution but none worked for me. so I googled and found below solutions. I tried and it worked.

    https://www.tutorialspoint.com/how-to-turn-android-device-screen-on-and-off-programmatically

    if there is any suggestion then please give

提交回复
热议问题