Android的全球触摸事件 [英] Android Global touch event

查看:128
本文介绍了Android的全球触摸事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个后台程序一个在Android和想赶在屏幕上的触摸事件。 由于前台应用程序B(当前运行的)是不是我的应用程序, 我不能使用的意图间的应用程序通信。

I'm making a background app A in android, and want to catch the touch event on the screen. Because the foreground app B (currently running one) is not my app, I can't use the intent for inter-app communication.

我可以读出触摸感应像其他GPS或加速度传感器的信息,使用公共的API,挂钩(?),即使在低级别的电容式触摸屏,或以任何方式? (考虑到用户允许的任何权限,但生根)

Can I read the touch sensing information like other GPS or Accelerometer sensors, using public API, hooking(?), even in a low-level from the capacitive touch screen, or in any way? (given the user allowed any permission but rooting)

推荐答案

幸运的是,这是不可能的,明显的安全和隐私的原因。

Fortunately, this is not possible, for obvious security and privacy reasons.

这篇关于Android的全球触摸事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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