Android detecting the touch state from any application

后端 未结 1 841
一生所求
一生所求 2020-12-16 06:31

Is it possible to detect touch events from within another application, specifically swipes? I\'d like to be able to detect if the user has swiped left or right (even with 2

相关标签:
1条回答
  • 2020-12-16 06:37

    Is it possible to detect touch events from within another application, specifically swipes?

    Fortunately, no.

    or failing that, is there some API perhaps that I can poll say 10 times a second to get the touch state and I can compute the rest

    Fortunately, no.

    I think it could be done by hijacking the primary Launcher and having a transparent click-through on-top activity

    Fortunately, no.

    You are welcome to write your own home screen application, in which case you can track your own touch events on your own home screen. You are welcome to write an ordinary application and track your own touch events on your own activities.

    0 讨论(0)
提交回复
热议问题