title: Get referrer after installing app from Android Market
body: <p>I am trying to register a Broadcast Receiver that catches "com.android.vending.INSTALL_REFERRER" intents launched by Android after an app is installed from the Market.</p>
  
  <p>I am following the details here: <a href="http://code.google.com/mobile/analytics/docs/android/#referrals" rel="noreferrer">http://code.google.com/mobile/analytics/docs/android/#referrals</a></p>
  
  <p>However, I cannot use Google Analytics so I have created my own solution. I have added the following to my manifest file:</p>
  
  <pre><code>&lt;receiver android:name="com.test.Receiver" android:exported="true"&gt;
  &lt;intent-filter&gt;
      &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;
  &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>and created a basic BroadcastReceiver class:</p>
  
  <pre><code>public class Receiver extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
  
          Bundle extras = intent.getExtras();
          String referrerString = extras.getString("referrer");
  
          Log.w("TEST", "Referrer is: " + referrerString);
      }
  }
  </code></pre>
  
  <p>However, when the app is installed the receiver doesn't seem to catch the Intent (if the Intent is even broadcast?) and I get no logging output.</p>
  
  <p>Am I going wrong somewhere or is the Market no longer launching these Intents when an app is installed?</p>