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 their skills
HomeGallerySearchRegisterLog in

 disabled screen time out

Go down 

Posts : 293
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

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: