I'm writing a service on android and I need to turn off the screen after a certain time, I tried using all solutions on this thread enter link description here
but none of them worked, thus is there any way i can simulate the power button? Thank you
I'm writing a service on android and I need to turn off the screen after a certain time, I tried using all solutions on this thread enter link description here
but none of them worked, thus is there any way i can simulate the power button? Thank you