Skip to content

Instantly share code, notes, and snippets.

@ggrell
Created February 21, 2012 15:59
Show Gist options
  • Save ggrell/1877137 to your computer and use it in GitHub Desktop.
Save ggrell/1877137 to your computer and use it in GitHub Desktop.
The receiver definition in AndroidManifest.xml for your app
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
...>
<application ...>
<acivity ... />
<!-- Android Market install receiver -->
<receiver
android:exported="true"
android:name="com.your.namespace.InstallReferrerReceiver" >
<intent-filter >
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment