Android Studio hält das Gerät wach
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);