Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to stop screen going off android studio

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

to disable keep screen on:
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stop #screen #android #studio
ADD COMMENT
Topic
Name
3+3 =