From 2bf231cc6f791361dabe457c8997fab5773aa625 Mon Sep 17 00:00:00 2001 From: Pedro Filipe Date: Mon, 6 Oct 2014 10:54:57 +0200 Subject: [PATCH 1/2] Google Play Store Readme --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 89cb7af87..d4adf84e8 100644 --- a/README.md +++ b/README.md @@ -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 + +``` + +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. @@ -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 @@ -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 From 8e2d7537d6b2dbed4ee859bf2daa7ea053aae2b5 Mon Sep 17 00:00:00 2001 From: Pedro Filipe Date: Wed, 8 Oct 2014 12:26:42 +0200 Subject: [PATCH 2/2] Cleaned OnClickListener in Readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d4adf84e8..c54297d97 100644 --- a/README.md +++ b/README.md @@ -297,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