Q:

Can we have INSTALL_REFERRER two times in a single Android app?

I am working on an Android application where I am using INSTALL_REFERRER to know source of installation of my app. For this, I am using first Google Analytics Install_Referrer intent filter and one of my own custom ones.
Is it possible to have two broadcast receiver entries with an intent filter com.android.vending.INSTALL_REFERRER in Android?
Google Analytics Receiver
<receiver
    android:name="com.google.analytics.tracking.android.CampaignTrackingReceiver"
    android:exported="true" >
    <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
    </intent-filter>
</receiver>

My Custom Broadcast Receiver.
<receiver
    android:name="com.xyz.broadcastreceiver.ReferrerCatcher"
    android:exported="true" >
    <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
    </intent-filter>
</receiver>

A:

No we can't have two Install Referrer broadcast receiver. For this I created my own custom broadcast receiver to achieve Google Analytics Source tracking and my own stuff.
<receiver
    android:name="com.xyz.broadcastreceiver.ReferrerCatcher"
    android:exported="true" >
    <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
    </intent-filter>
</receiver>

In the ReferrerCatcher broadcast receiver
public class ReferrerCatcher extends BroadcastReceiver {
    public static final String TAG = InstallReceiver.class.getCanonicalName();

    @Override
    public void onReceive(Context context, Intent intent) {

        // Google Analytics
        new CampaignTrackingReceiver().onReceive(context, intent);

        Log.d(TAG, intent.getExtras().getString("referrer");
        // my stuff here 
    }
}

