Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In HTML5, how can I keep an Android device’s screen on?

Tags:

html

android

We are developing an App in HTML5 using jQuery.

Is there a way/method, in JavaScript or another technology, to keep the screen "on"?

like image 873
Mrgoos Avatar asked Jul 17 '12 19:07

Mrgoos


1 Answers

I think there is another way doing it without any java code. You can add a video of 1 second with infinite repeat and hidden and it will do the trick. I have read it somewhere but i don't remember where.

Maybe you could use one of the blank videos below:

  1. https://github.com/esc0rtd3w/blank-intro-videos
  2. https://github.com/kud/blank-video

IT WORKS!

like image 166
Herbi Shtini Avatar answered Oct 05 '22 01:10

Herbi Shtini