title: com.android.vending.INSTALL_REFERRER isn't working
body: <p>I originally asked <a href="https://stackoverflow.com/questions/14857070/initial-configuration-for-android-app">this question</a>, about passing parameters through a market link into my app on install.  </p>
  
  <p>Everyone seems to be saying to create a <code>BroadcastListener</code> with the <code>intent-filter</code> action of <code>com.android.vending.INSTALL_REFERRER</code>.  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... so that's what I am using).  I can't get these links to pass data through.  I have my full manifest and my broadcast listener.  I have included Google Analytics just in case that was a requirement.  </p>
  
  <ul>
  <li><a href="https://developers.google.com/analytics/devguides/collection/android/devguide?hl=en#google-play-tracking" rel="nofollow noreferrer">Google Analytics Reference</a></li>
  <li>Generated link to market <a href="https://developers.google.com/analytics/devguides/collection/android/devguide#google-play-builder" rel="nofollow noreferrer">from here</a></li>
  <li>Link to <a href="https://play.google.com/store/apps/details?id=com.robotsidekick.webbrowser" rel="nofollow noreferrer">my app in the store</a></li>
  <li>Link <a href="https://play.google.com/store/apps/details?id=com.robotsidekick.webbrowser&amp;referrer=utm_source=mred&amp;utm_medium=joesomebody&amp;utm_campaign=subbranding" rel="nofollow noreferrer">with parameters in the store</a></li>
  </ul>
  
  <p>It doesn't work at all.  My broadcast listener is never called, nothing gets printed out in the logs.  Help!</p>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.robotsidekick.webbrowser"
        android:versionCode="4"
        android:versionName="4.0"&gt;
  
  &lt;uses-sdk android:minSdkVersion="17"/&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
  &lt;application
      android:label="@string/app_name"
      android:icon="@drawable/ic_launcher"&gt;
  
      &lt;activity
          android:name="WebBrowser"
          android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN"/&gt;
              &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;receiver
          android:exported="true"
          android:name="com.robotsidekick.webbrowser.InstallReceiver"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>Broadcast Listener</strong></p>
  
  <pre><code>public class InstallReceiver extends BroadcastReceiver
  {
      private static final String TAG = "InstallReceiver";
  
      public void onReceive(Context context, Intent intent)
      {
          Log.e(TAG, "Context: " + context);
          Bundle extras = intent.getExtras();
          if (extras != null)
          {
              Log.e(TAG, "Extras:");
              for (String keys : extras.keySet())
              {
                  Log.e(TAG, keys + " -&gt; " + extras.get(keys));
              }
          }
          else
          {
              Log.e(TAG, "Extras are null");
          }
      }
  }
  </code></pre>