locking - Android get Lock Timeout Programmatically -


i writing app show activity on lock screen when phone locked , screen off. when user leave activity, keyguard should shown. common way detect whether phone locked by receiver , action.screen_off. works if user press lock button lock , screen off phone. however, after ics, phone may not locked phone screen off.

so, how can lock event or how can value of automatically lock picture below?

i know inkeyguardrestrictedinputmode() way check if phone locked. cannot report automatically when phone locked receiver.

the screenshot setting in android 4.1.2

you can timeout value following code:

mresolver = this.getcontentresolver();     long timeout = settings.secure.getint(mresolver,             "lock_screen_lock_after_timeout",             0); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -