机器人从任何应用程序检测到触摸状态 [英] Android detecting the touch state from any application

查看:92
本文介绍了机器人从任何应用程序检测到触摸状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在其他应用程序,从检测到触摸事件,特别是刷卡?我想能够检测用户是否已刷卡左或右(即使是使用2个手指 - 但不是必需的)。或许有一个服务或广播我可以听。

或做不到这一点,有一些API,或许我可以轮询说10次,第二次获得了触摸状态,我可以计算出其余的(为什么,我记得写的鼠标驱动程序频闪与输出的数量COM1端口8086在XT汇编codeD在TSR ......)!

总之,任何帮助AP preciated。 (我认为这可能被劫持的主要发射并具有透明的点击通过顶部的活动来实现,但这是严重的欺诈行为与危险!)

解决方案
  

时有可能发现在其他应用程序的触摸事件,特别是刷卡?

幸运的是,没有。

  

或做不到这一点,有一些API,或许我可以轮询说10次,第二次获得了触摸状态,我可以计算出其余

幸运的是,没有。

  

我认为它可能通过劫持的主启动程序和具有透明的点击在最上层的活动来完成

幸运的是,没有。

欢迎您来写自己的主屏幕应用,在这种情况下,你可以在自己的主屏幕上追踪自己的触摸事件。欢迎您来写一个普通的应用程序,并在自己的活动跟踪自己的触摸事件。

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 fingers - but not required). Perhaps there is a service or broadcast I can listen to.

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 (why, I remember writing a mouse driver strobing the COM1 port with IN OUTs in 8086 assembler coded in a TSR on a XT...)!

Anyway, any help appreciated. (I think it could be done by hijacking the primary Launcher and having a transparent click-through on-top activity, but that's seriously fraud with danger!)

解决方案

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.

这篇关于机器人从任何应用程序检测到触摸状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆