In my application, I want to detect my application idle time(when user doesn't interact with the application for a number of seconds ) and lock app with Login activity, how could I achieve this?
I tried that was posted in this link:
but I am not getting idle time, the time starts at the time I launch my app
Please suggest what to do?