We have similar posts, but none of them are what I'm looking for. I would like to change the screen timeout for a specific action. I want to avoid using WakeLock, if possible, and I do not want to change the system timeout delay setting.
Is there a way to do this without manually tracking user activity and using tracking locks?
= ---- =
Clarification: for example, how can you set the timeout for screen inactivity (the time it takes to turn off the screen after there is no input), some value, for example, 3 minutes?
This can be done by setting the system parameters, but it affects the entire device (even after closing the application), so this is not a good solution.
Thanks!
android
Sheado
source share