后台程序来听拖动手势 [英] Background app to listen to Drag gestures

查看:111
本文介绍了后台程序来听拖动手势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要注册一个广播接收器,会告诉我任何形式的事件在整个系统中。我的应用程序将运行在后台执行任何任务,如果任何形式的拖动甚至没有任何其他应用程序正在运行事件发生在前台。可能吗?我如何能做到这一点任何想法?

I need to register a broadcast receiver that will tell me any kind of Drag events throughout the system. My app will run at background and perform any task if any kind of Drag event happens even any other app is running in the foreground. Is it possible? Any idea on how can I do it?

更新:不要以为我会做键盘记录。我的应用程序将是可见的,但会在后台运行。所有我想要的是简单地检测拖动事件(向左拖动,拖动到右边,拖动到和拖下来)。 我会接受任何的答案,如果你能告诉我,我怎么能显示4个按钮这些都是permant,在任何其他应用程序顶部,因为这也可以成为我想要的。

Updates: Do not think I'm going to make keylogger. My app will be visible but will run in background. And all I want is simply to detect Drag events (drag to left, drag to right, drag to up and drag to down). I'll accept any answer if you can tell me about how can I display 4 buttons those are permant, on top of any other apps because this can also serve me what I want.

推荐答案

我发现我的回答这里。我需要启动服务。

I found my answer here. I need to start a service.

这篇关于后台程序来听拖动手势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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