want:go to login page after user no interaction in 5 min. I can not found a method or something to get the exactly time. But how can android system decide when to lock screen? and user can set sleep time? can someone help me.
Asked
Active
Viewed 55 times
0
-
use Handler.postDelay() – Maheshwar Ligade Mar 01 '16 at 04:55
-
Similar to [this](http://stackoverflow.com/questions/4208730/how-to-detect-user-inactivity-in-android). – Exception Mar 01 '16 at 05:00
-
I tried. but there are so many activities.when I click button on fragment.It will not be called. @Exception – Jack chen Mar 01 '16 at 05:05