2

I am looking for a possibility to monitor if a application gets started, i.e. if the user starts any app on his phone, my app should register that. Is there an easy way to achieve this? Such as an broadcast event?
I tried out to catch the android.intent.action.PACKAGE_RESTARTED event with a broadcast receiver, but it did not work. Is there a possibility to get notified if an application gets started? Such as the event android.intent.action.PACKAGE_ADDED that is send out if an app got installed.

Mohsen Kamrani
  • 7,177
  • 5
  • 42
  • 66
DonMushroom
  • 442
  • 3
  • 19

1 Answers1

2

Short answer: It's not possible, see this mailing list discussion.

omz
  • 53,243
  • 5
  • 129
  • 141
  • well thanks, in this case i think, i keep a service that gets periodicaly woken up and scans the currently running processes. that requires a bit more work but should do it aswell. – DonMushroom Apr 03 '14 at 12:34