Prevent Touch Screen Lock during Activity Recording

Hi!
I'm developing an app to log tennis scores during the game while also recording activity using ActivityRecording.createSession()
Since this makes the app an activity my Vivo Active 6 automatically locks the touch screen after a few seconds and I need to unlock it with the padlock sliding motion. 

Is there a way to prevent the touch screen lock programatically from my app?
Or alternatively from a system level somewhere?

  • I'd also like to know this. Isn't there anybody that can help out?

  • Bump. I'm looking for some solutions. My apps allow users to keep track of score during Padel/Tennis sessions. Users are able to enter Fault/Score and then assing if the shot was a Unforced/Forced error, winner etc. Input is based on buttons and the touch but on Vivoactive 6 screen gets automatically locked and each time user would like to input the score he has to unlock the screen which is very annoying (lock icon shows up):

     \

    - Two buttons at the right side of vivoactive6 are not enough to handle inputs.
    - It does not matter if touch is enabled in system settings (the lock still shows up).