I have written an install receiver to determine when an app has been installed via the Market. However, I also want to pass the INSTALL_REFERRER broadcast onto other receivers such as the Google Analytics AnalyticsReceiver
if it is installed within the app. Importantly, I do NOT know if other receivers are installed as my receiver will be used by other developers within their apps.
Currently, I receive the broadcast and when complete I call:
AnalyticsReceiver receiver = new AnalyticsReceiver();
receiver.onReceive(context, intent);
The issue is the AnalyticsReceiver
class may not be present.
So how do I pass on the broadcast if I'm not sure whether the app uses the AnalyticsReceiver
?
Or will Android itself make sure each receiver installed gets the broadcast?
Many thanks!