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.
you can timeout value following code:
mresolver = this.getcontentresolver(); long timeout = settings.secure.getint(mresolver, "lock_screen_lock_after_timeout", 0);
Comments
Post a Comment