how to get sequence of user interaction with android device?

蓝咒 提交于 2019-12-13 04:04:41

问题


After many sites searched and googling,

I can't find anything for my problem. I want to capture the sequence of user interactions on android device. Starting from when the device is powered ON. And one more thing is that I'm not talking about the user event on UI of any application. It's for whole device UI interactions. And if any tools are available then please let me know about it. I didn't get anything about this. Any help or suggestion is well appreciate.


回答1:


This is not possible, except perhaps via modified firmware, for obvious security and privacy reasons.




回答2:


I am not sure at what extent it will help you to achive your goal but the best way I know is that:

  1. You need to implement Broadcastreceiver for every action like action android:name="android.intent.action.BOOT_COMPLETED" when your device starts, similarly you need to use all the action which will notify you in your receiver.

  2. You can run a service where you can check which app is running for your record. For this you need to fetch installed app list.



来源:https://stackoverflow.com/questions/7513574/how-to-get-sequence-of-user-interaction-with-android-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!