How to detect user inactivity/idle in Android

Possible to detect user inactivity in Android ?