Last Updated: February 25, 2016
·
611
· jmpergar

Keep the screen ON

we can use keepScreenOn property inside the layout:

android:keepScreenOn="true"

Or call setKeepScreenOn method from your View Class:

setKeepScreenOn(true)