원하는 Activity의 Oncreate()함수에 아래 코드를 넣으시면
아무런 입력이 없어도 화면이 꺼지지 않습니다.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
'Android' 카테고리의 다른 글
안드로이드 device id 와 전화번호 얻기 (0) | 2015.12.10 |
---|---|
How to increase Android studio memory limit in Mac (0) | 2015.11.26 |
Android Studio SVN Ignore files in Android Studio (0) | 2015.09.25 |
This Handler class should be static or leaks might occur: IncomingHandler (0) | 2015.09.24 |
keytool error Keystore was tampered with, or password was incorrect (0) | 2015.09.21 |