The Android SDK tells me that PowerManager.SCREEN_DIM_WAKE_LOCK
and similar constants are deprecated as of API Level 17. It also says that FLAG_KEEP_SCREEN_ON
can be used in most situations.
But what if this is not the case? In particular, I want to be able to have the screen dimmed but not shut off entirely. What are other, "better" alternatives – or aren't there simply any?