How to prevent lock screen (disable standby button)

I’m using Processing 3.5.4 in Android mode.
I want the screen always on while my app is running, i.e. disable the phone power button to avoid accidentally locking the screen.
How can I do that?

You can use wakelock to prevent your device from locking the screen, but I don’t know of disabling the power button is possible…

Hope it will be useful

[EDIT]

Maybe that’s what you’re looking for

1 Like