When exactly does an app receive an INSTALL_REFERRER broadcast from Android Market? Can I safely assume it’s received before Application.onCreate() is called? I want to make sure my app doesn’t dispatch any tracking to Google Analytics before it is received. Put another way, where is the best place to put my tracking code? I am only tracking installs.
Thanks in advance…
It is guaranteed that
Application.onCreate()will be called before any broadcast is received.Presumably in an
IntentServicetriggered by yourINSTALL_REFERERBroadcastReceiver, if you do not want to do the work before the broadcast is received.