battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.


battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeSearchRegisterLog in
 

 disabled screen time out

Go down 
AuthorMessage
kurosen
codding
codding
kurosen

Posts : 291
Join date : 2012-04-17

disabled screen time out Empty
PostSubject: disabled screen time out   disabled screen time out EmptySat Mar 07, 2020 2:10 am

this is a modification to the MainActivity

Code:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);//disables screen timeout
        // getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); // reenable screen timeout

the screen doesn't go black and close the phone on timeout
I think maybe reenable this if the power is to low

life fuel
Back to top Go down
 
disabled screen time out
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: the LivinGrimoire-
Jump to: