Android Developer documentation specifies that SCREEN_DIM_WAKE_LOCK
should be replaced with FLAG_KEEP_SCREEN_ON
. After doing a bit of digging, I turned up this...
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
It should be placed in the onCreate()
method.