android studio keep device awake
snippet in kotlin

android studio keep device awake

user6709

window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)

android studio keep device awake

user2840

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);