Skip to content

Commit c61673c

Browse files
committed
ja added
1 parent e902787 commit c61673c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

doc/japanese/referrer_ja.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## Support multiple broadcast receivers
2+
3+
If multiple SDKs need to register a broadcast receiver for the
4+
`INSTALL_REFERRER` intent in your app, you will have to implement your own
5+
`BroadcastReceiver` that calls all the other receivers that you want to
6+
support. It should look like this [1]:
7+
8+
```java
9+
public class InstallReceiver extends BroadcastReceiver {
10+
@Override
11+
public void onReceive(Context context, Intent intent) {
12+
// Adjust
13+
new AdjustReferrerReceiver().onReceive(context, intent);
14+
15+
// Google Analytics
16+
new CampaignTrackingReceiver().onReceive(context, intent);
17+
}
18+
}
19+
```
20+
21+
Make sure to adjust the list of supported receviers and fix the imports. You
22+
also need to update your `AndroidManifest.xml` to use your own
23+
`InstallReceiver`:
24+
25+
```xml
26+
<receiver
27+
android:name="com.your.app.InstallReceiver"
28+
android:exported="true" >
29+
<intent-filter>
30+
<action android:name="com.android.vending.INSTALL_REFERRER" />
31+
</intent-filter>
32+
</receiver>
33+
```
34+
35+
Make sure to adjust your package name.
36+
37+
---
38+
39+
References and related links:
40+
41+
- [1] http://stackoverflow.com/questions/14158841/android-google-analytics-v2-broadcast-receiver-for-all-sdks
42+
- [2] http://stackoverflow.com/questions/4093150/get-referrer-after-installing-app-from-android-market
43+
- [3] http://docs.mdotm.com/index.php/Universal_Application_Tracking

0 commit comments

Comments
 (0)