3

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?

Community
  • 1
  • 1
Hao Shen
  • 2,605
  • 3
  • 37
  • 68

1 Answers1

4

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

No, for obvious privacy reasons.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491