1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Getting touch event in any view

Last Updated:

  1. diegofurts

    diegofurts New Member This Topic's Starter

    Oct 18, 2010
    Likes Received:

    I need to make a service that capture all touch events, not in a specific view or when an specific activity is open. This service is started when the boot is completed (and I have an app to stop/play this service when I want it). So it write something (in a Toast) when the user touch any place in the screen.

    Can I do this? Or only in specifics things (with OnTouchListener and adding specifics views, for example)?

    Sorry for my bad english.

  2. kinglouy

    kinglouy New Member

    Oct 19, 2010
    Likes Received:
    Hello Everyone,

    i have the same Problem. I want to develop a App for Usability-Testing. Therefor i need to log every Event the User does. I tried to do this with an App-Launcher. To log the Touch Events i used "onInterceptTouchEvent" in a extended FrameLayout. So i can log every touch event in my App. Thats works fine. Now i launch a App witch "mainAct.startActivity(intent);" the secound App launches but i can't log a Event.

    I now that Android launches every Activity in a separate Task and i now that this App sounds like a Virus, but it is for the Labor of my University.

    Can anyone help?

Share This Page