跟踪用户交互的Andr​​oid用户、Andr、oid

2023-09-04 07:14:58 作者:浪友与狗

我是新的Andr​​oid和发展其在后台运行的服务来收集用户活动的应用程序。到现在我的应用程序能够获得有关用户使用的其他应用程序TIME_START,TIME_END和名称的信息。

I am new in Android and is developing an app which runs in background as service to collect user activity. till now my app is able to get information about Time_Start, Time_End and Name of other app used by user.

我想提高我的应用程序,以便能够计算有多少相互作用(比如用户敲击,触摸,...),使用户在使用其他应用程序。 任何帮助吗? 谢谢!

I want to improve my app to be able to count how many interactions(like user tap, touch,...) user make while using other app. any help? Thanks!

推荐答案

AFAIK一个不能捕获触摸事件/键presses,如果他们的 的外面的活动的内容或应用程序的情况下。我认为它会的的对的的设计原则,一般(每一个应用程序,是沙箱在自己的DVM)。

此外,Android已经提供意图的机制来跟踪一些特定的动作和不埃夫里的用户与移动互动。所以,我不认为这似乎是可能的。

AFAIK one can't catch touch events/key presses if they are outside your Activity's context or Application's context. I think it goes against the design principle in general ( every app. is sandboxed in its own DVM).

Also, Android has provided mechanism of Intents to track some specific actions and not evry interaction the user has with the mobile . So, I don't think it seems possible .