Android Studio Mantenha o dispositivo acordado
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
Vhern
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);