在整个装置的姿态监听器监听器、姿态、装置、在整个

2023-09-07 15:47:25 作者:吧唧你一口

我在寻找一个应用程序(SwipePad),并注意到在应用程序启动后,它检测到的手势整个平台,即使在应用程序中的主要部分是被放到了后面(的onPause ...也就是说,它不是当前活动)。它看起来就像是使用某种系统服务,以使自己活着,但它是如何仍然得到姿态从挡板在这样的系统级?

I was looking at an application (SwipePad), and noticed that after the application launches, it detects gestures across the entire platform, even after the main part of the application as been sent to the back (onPause... i.e. it isn't the current activity). It looks like it's using some kind of system service to keep itself alive, but how is it still getting the gesture from the bezel at the system level like that?

这也是有趣的是,应用程序本身没有使用根。有什么想法?

It also was interesting that the application itself isn't using root. Any thoughts?

推荐答案

您可以布局,可以在所有其他窗口的上面坐。他们将被从服务运行。

You can make layouts that can sit on top of all other windows. They will be running from a service.

结帐:Create UI或小工具,看到在所有的Andr​​oid应用程序的顶部?