android - Setting screen time out on the lock screen -


i trying set screen/display timeout on lockscreen programmatically. i.e. time last touch screen off. think may device dependent. able change on 1 phone (jb 4.2.2)

settings.system.putint(getcontentresolver(), settings.system.screen_off_timeout, 30000); 

but isn't working on nexus 5 (kk 4.4.2). no matter do, seems stay @ 10s.

any ideas? there separate setting lockscreen?

thanks!

if app have device admin can set time lock follow this

public void setmaximumtimetolock (componentname admin, long timems) 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -