Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android prevent screen from turning off programmatically

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #prevent #screen #turning #programmatically
ADD COMMENT
Topic
Name
2+1 =