I guess, I have a generic logic problem. I want to logout a user after 15 if there is no activity. How do I find any \"activity\" in android. How should I go about it...
You should have all activities inherit from a parent activity that overrides onUserInteraction(). In that callback you should reset a static app wide timer that will perform your logout code when the time reaches the end.