后台程序来听拖动手势拖动、手势、来听、后台程序

由网友(被放弃的我@)分享简介:我需要注册一个广播接收器,会告诉我任何形式的拖事件在整个系统中。我的应用程序将运行在后台执行任何任务,如果任何形式的拖动甚至没有任何其他应用程序正在运行事件发生在前台。可能吗?我如何能做到这一点任何想法?I need to register a broadcast receiver that will tell me...

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

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.

阅读全文

相关推荐

最新文章