2

I am developing an Ubuntu Phone html 5 application and I want to prevent the screen from dimming and locking the phone if there are no user interaction in the screen. (The application is showing an animation but the screen goes idle and locks it).

I have tried quite a few ways to prevent this as suggested by stackoverflow. Among them: going html5 fullscreen, playing "empty" audio file and so on. But nothing seems to work and I haven’t found anything in the API documentation regarding this.

Has anybody successfully managed to do this or know how to do it?

1 Answers1

2

Apps cannot prevent the screen from locking.

The only way to keep the screen from locking, is for the user to go into System Settings and change the screen lock timeout to Never.

dobey
  • 41,650