Hi all,
I would like to turn off the screen after 1 minute of inactivity.
How to do it?
Thanks
Hi all,
I would like to turn off the screen after 1 minute of inactivity.
How to do it?
Thanks
I think it is possible with clock timer and Activity starter.
@Mateja is correct, you cannot turn off the screen programmatically. But you can change the screen (background) to black after 1 minute using a timer.
“If you are not using PhoneWakeState lock then the screen will turn off based on the device setting. There is no API to turn off the screen.”
See eg here:
Well techincally, that isn’t turning off the screen.
Conclusion: it is impossible
Any prove that this saves battery’s energy?
Read Carefully
it says for many devices, you can’t save battery life by using a black bg if it’s not OLED.
Thank you all.
Nice discusion!!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.