Last Updated: February 25, 2016
·
624
· 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)