

(this will executed, only once you have successfully fired the Install_referrer intent from the ADB for testing). creating a custom BroadcastReceiver where you can ready the intent. If someones still stuck, they can get some pointers from my learnings.Ī. The cool thing is you don't need any GA jar at all! Checkout my test project here: This project also shows you how to parse the link to get all of the information that you need.Īfter many failed attempts i could finally see the passed referral parameters in logcat.Īlong the way, i figured out a few things, i am not too sure if i am doing it rite or wrong, but for some reasons, these worked. I created a test project and used the PlayStores alpha testing to test out referrer links, which you can build here.

If anyone has a link to beta 3 we could test this, or if xbakex could confirm with playing around with the new jars that would rock!īAM! So permissions are not an issue. The biggest problem is they seemed to have locked down this class in beta 4 or 5. If you change that test broadcast so that your class replaces .android.AnalyticsReceiver you can then receive it. If you look at their test broadcast it does appear specific for that class. AnalyticsReceiver and so no other class that is not extending it can pick up the intent. I think the key is that the intent has permissions for. So xbakesx says that it seems to work if his receiver extends .android.AnalyticsReceiver. Log.e(TAG, keys + " -> " + extras.get(keys)) Public void onReceive(Context context, Intent intent) Private static final String TAG = "InstallReceiver" Help!īroadcast Listener public class InstallReceiver extends BroadcastReceiver My broadcast listener is never called, nothing gets printed out in the logs.

I have included Google Analytics just in case that was a requirement.

I have my full manifest and my broadcast listener. I can't get these links to pass data through. All the documentation on that seems to imply this is a capability of Google Analytics (the documentation is in v1, but I can only download v2 SDK at this point. 936 2924 W ActivityManager: Scheduling restart of crashed service /.hygiene.DailyHygiene$DailyHygieneService in 1000msĠ5-16 10:06:30.890 10 I WindowManager: WIN DEATH: Window from uid 10054Ġ5-16 10:08:07.145 1000 936 964 E BatteryExternalStatsWorker: no controller energy info supplied for wifiĠ5-16 10:08:14.943 10 W AlarmManager: Window length 1152921504606846975ms suspiciously long limiting to 1 hourĠ5-16 10:08:42.959 1000 936 985 I PowerManagerService: Going to sleep due to screen timeout (uid 1000).I originally asked this question, about passing parameters through a market link into my app on install.Įveryone seems to be saying to create a BroadcastListener with the intent-filter action of _REFERRER.
