I'd like to run a service/background task that would detect user inactivity (that would be touching the screen or unlock the phone).
It would be used to detect that the phone is lost, and then send position informations to a server. Automatically (oh yeah).
How could I detect that ?
Thanks.