跟踪用户交互的Andr​​oid [英] tracking user interaction Android

查看:110
本文介绍了跟踪用户交互的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的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 .

这篇关于跟踪用户交互的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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