This content has been marked as final.
Show 2 replies
-
Re: Method to keep Android Screen Active
Billie Hecox Aug 9, 2016 6:32 AM (in response to Christopher Sather)Chris, the safest way to do this would be to choose any view in the applications Activity and set its keepscreenon property to true. Below is the method that can be used for Java, you/they will need to figure out Cordova equivalent
https://developer.android.com/reference/android/view/View.html#setKeepScreenOn%28boolean%29
-
Re: Method to keep Android Screen Active
Kevin Lollock Aug 9, 2016 6:39 AM (in response to Christopher Sather)There's a real good article on StackOverflow regarding setting KeepScreenOn in a cordova app:
changing KeepScreenOn from javascript in Android cordova app - Stack Overflow