Thursday, March 1, 2012

Catch any touch in the screen in a service


I need a service that know if the user is touching the screen anywhere. If user doesn't touch the screen in a time, I launched a intent to the browser. Someone can help me. I cann´t find the code of how to capture any touch on screen in a service and I cann't think in any solution. Sorry for my English and thanks.


1 comment:

  1. Write your code inside the following method:

    public void onUserInteraction() {
    super.onUserInteraction();
    }

    ReplyDelete