Skip to content

Commit

Permalink
Merge pull request #71 from adjust/update_doc
Browse files Browse the repository at this point in the history
Google Play Store Readme
  • Loading branch information
nonelse committed Oct 8, 2014
2 parents 026ecd5 + 8e2d753 commit 02c700d
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ click `OK`. Save your changed project properties by clicking `OK` again.

### 4. Add permissions

#### Google Play Store

Since the 1st of August of 2014, apps in the Google Play Store must use the [Google Advertising ID][google_ad_id] to uniquely identify the devices. To allow the adjust SDK to use the Google Advertising ID, you must integrate the [Google Play Services][google_play_services].

In the Package Explorer open the `AndroidManifest.xml` of your Android project.
Add the `uses-permission` tag for `INTERNET` if it's not present already.

```xml
<uses-permission android:name="android.permission.INTERNET" />
```

If you are using Proguard, add these lines to your Proguard file:

````
-keep class com.adjust.sdk.** { *; }
-keep class com.google.android.gms.common.** { *; }
-keep class com.google.android.gms.ads.identifier.** { *; }
```
#### Other Stores
In the Package Explorer open the `AndroidManifest.xml` of your Android project.
Add the `uses-permission` tags for `INTERNET` and `ACCESS_WIFI_STATE` if they
aren't present already.
Expand All @@ -62,8 +83,6 @@ If you are using Proguard, add these lines to your Proguard file:
````
-keep class com.adjust.sdk.** { *; }
-keep class com.google.android.gms.common.** { *; }
-keep class com.google.android.gms.ads.identifier.** { *; }
```
### 5. Add Adjust settings
Expand Down Expand Up @@ -278,10 +297,10 @@ The simplest way is to create a single anonymous listener for these notification
Adjust.setOnFinishedListener(this);
```

This `OnClickListener` will only be set if this activity has been active
This `OnFinishedListener` will only be set if this activity has been active
before. You can set it in all activities to make sure that it is always set,
regardless of what activities have been active. In this case it makes sense to
implement the `OnClickListener` interface in one class and set the listener to
implement the `OnFinishedListener` interface in one class and set the listener to
the same object in every `onResume` method.

The listener method `onFinishedTracking` will get called every time any
Expand Down Expand Up @@ -388,6 +407,8 @@ protected void onCreate(Bundle savedInstanceState) {
[log]: https://raw.github.com/adjust/adjust_sdk/master/Resources/android/log4.png
[referrer]: doc/referrer.md
[attribution-data]: https://github.com/adjust/sdks/blob/master/doc/attribution-data.md
[google_play_services]: http://developer.android.com/google/play-services/index.html
[google_ad_id]: https://developer.android.com/google/play-services/id.html

## License

Expand Down

0 comments on commit 02c700d

Please sign in to comment.