Android: How to prevent а device from going to sleep?

Ok, I made it just a screen hold like for a video player. It doesn’t even require permission.

Here is the service I wrote:

Here is Pascale usage:

According to this documentation:

This functionality is already enough to make my app fully usable. And I can make the release.

PS: For Windows version added same functionality.

PS2: Background counting isn’t implemented yet, but I thinking on it.

2 Likes