To prevent an Android device from going to sleep programmatically,
Call
setKeepScreenOn(true) on that View or set the keepScreenOn property to true. This will prevent the screen from going off while the View is on the screen. No special permission required for this.
No comments:
Post a Comment