google-play-services
After Google Play Service update to version 13 I got an error
You need to add the following in your manifest: <application> <meta-data android:name=”com.google.android.gms.version” android:value=”@integer/google_play_services_version” /> … </application> EDIT: This information can be found in the logcat error msg as well as on Setting Up Google Play Services (Thanks Brais Gabin)
In-app purchases with multiple accounts
It seems like there isn’t a one way road to solve this, but let’s try do this. When the user first install the app get his/her primary email or all accounts on the device Ask the user what email will they be using for future payment/ or which account is active for google play. you … Read more
ProGuard: can’t find referenced class com.google.android.gms.R
Although adding this to proguard-project.txt file works, it keeps all classes. -keep class com.google.android.gms.** { *; } -dontwarn com.google.android.gms.** I prefer this, which makes apk file size much smaller: -keep public class com.google.android.gms.* { public *; } -dontwarn com.google.android.gms.** Also note up to date Google Play Proguard notification here: http://developer.android.com/google/play-services/setup.html#Proguard -keep class * extends java.util.ListResourceBundle … Read more
Get referrer after installing app from Android Market
I would try to help who, like me, fails to make install_referrer work and who don’t find ANY useful information about these features. Notes: The intent com.android.vending.INSTALL_REFERRER will be caught during the install process, not when the application starts for the first time. The referrer …extras.getString(“referrer”).. is fixed but the contents can be any string … Read more
GoogleApiClient is throwing “GoogleApiClient is not connected yet” AFTER onConnected function getting called
I just noticed that you are creating the googleApiClient in onStartCommand(). This seems like a bad idea. Let’s say that your service gets triggered twice. Two googleApiClient objects will get created, but you’ll only have reference to one. If the one whose reference you don’t have executes its callback to onConnected(), you will be connected … Read more
Missing “/extras/google/google_play_services/libproject” folder after update to revision 30
Looks like Google just broke down Google Play Services into multiple libraries. You’ll find them in <sdk>/extras/google/m2repository/com/google/android/gms, if you also updated Google Repository through the SDK Manager. The individual libraries are in aar format, so you’ll have to extract the jar yourself, if that’s what you’re after.
FusedLocationApi.getLastLocation always null
The fused Location Provider will only maintain background location if at least one client is connected to it. Now just turning on the location service will not guarantee to store the last known location. Once the first client connects, it will immediately try to get a location. If your activity is the first client to … Read more
New Google sign in Android
I had exactly the same problem and i have found the solution. If you follow the documentation found here: https://developers.google.com/identity/sign-in/android/start-integrating The first step tells you to create the configuration file (which creates an OAuth 2.0 client ID for you and inserts it into the google-services.json) Then later, it says again about creating a OAuth 2.0 … Read more