Session User management android
<p>I have an application where you have to log in like an user with your password.</p>

<p>This application needs to be secure, so it needs to Log Out the user when he doesn´t tocuh the screen during a determinate period of time(let´s say, 5 minutes).</p>

<p>The problem is that, once the user is logged in, he can go through many activities, not only one, and I would like to know if there is a way in Android to know if the user can get Logged out after few minutes.</p>

<p>I was thinking about using the method onInterceptTouchEvent(MotionEvent ev), but the problem is that, ¿do I have to use this method on every activities? ¿there is another easier way to manage it in Android? </p>

<p>Thanks a lot!</p>
