title: Android PowerManager WakeLock – Deprecated
body: <p>The Android SDK tells me that <code>PowerManager.SCREEN_DIM_WAKE_LOCK</code> and similar constants are deprecated as of API Level 17. It also says that <code>FLAG_KEEP_SCREEN_ON</code> can be used in most situations.</p>
  
  <p>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?</p>