How does an application know if a package is added or removed?
Whenever a package is added, an intent with PACKAGE_ADDED action is broadcast by the system. Similarly when a package is removed, an intent with PACKAGE_REMOVED action is broadcast. To receive these intents, you should write something like this:
Related Questions
- For application of Value Added Services, what is the minimum subscription period? Will I be charged if I terminate any of the services?
- How do I get an application package to the PhD and research-stream LLM offered at Osgoode Hall Law School?
- What type of attachments may be added to an application package?