android - programatically setting screen timeout with Settings.System.putInt() -
i know there multiple questions similar.
the requirement switch screen timeout between "never" , original setting. when settings.system.putint(getcontentresolver(), settings.system.screen_off_timeout, -1);
, screen doesn't dim on emulator (4.0 ice cream sandwich) , samsung galaxy sii (4.1.2 jelly bean) when installed on 4.4 kitkat, screen dimmed immediately.
did change in os? there way set never time out on kitkat?
since having trouble setting never time out, going set 120minutes instead. when try set specific time (eg. 60minutes, 120minutes, etc) set 30minutes. other values seem rounded up/down well. not possible set that's not figure listed in android setting app? (15sec, 30sec, 1min, 2min, 5min, 10min, 30min)
i hoping can enlighten me. in advance.
did change in os?
yes, aosp of kitkat something.
when got -1 , modify -1 15 seconds.
Comments
Post a Comment