I am using the method setKeepScreenOn(true) and haven\'t been able to figure out how to call this in relation to the current Activity (which has a content view set). I\'ve
Try this answer:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
getWindow is a method defined for activities, and won't require you to find a View first.
getWindow
View