** in Activity
//sleep lock
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
//release
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
WakeLock을 쓰는 방법은 depracated 된듯
<textarea style="background-color: lightred; color: black; height: 150px; padding: 10px 5px 15px 20px; width: 300px;">
**Depracated
PowerManager.SCREEN_BRIGHT_WAKE_LOCK
</textarea>
PowerManager.SCREEN_BRIGHT_WAKE_LOCK
</textarea>
댓글
댓글 쓰기