Does Android broadcast when an app is opened?

跟風遠走 提交于 2019-12-23 18:55:34

问题


For example, if I want to know when Youtube is opened, is there any broadcast associated with it? I know of course I can poll the logcat message to check the activity. But can I do it through broadcast since it will be much less power-hungry.

This link seems to indicate it is impossible:< How to Track App Usage in Android? How to detect when an activity is launched?


回答1:


In adroid, is there any broadcast when some app is opend?

No, for obvious privacy reasons.



来源:https://stackoverflow.com/questions/10282365/does-android-broadcast-when-an-app-is-opened

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