google-play-services

Android - Play a sound on achievement unlocked

倾然丶 夕夏残阳落幕 提交于 2019-12-21 03:03:09
问题 I have an Android game and I'd like to play a sound whenever a players unlocks an achievement, but I can't seem to find a way to know when the user unlocks the achievement, since most of my achievements are incremental I have no way to code it on the client side, the only way would be some callback called when the Google API shows the achievement box, but I can't find any of those on the documentation... Only thing i found was this: Integrating Google Play services achievements and android

AdMob Banner not working on mobile data

泄露秘密 提交于 2019-12-21 02:35:35
问题 I've recently started in Android App developing and I'm a getting the following error in logcat when trying to load the banner in my app. 03-02 17:30:58.509: I/Ads(12181): Use AdRequest.Builder.addTestDevice("My device ID") to get test ads on this device. 03-02 17:30:58.509: I/Ads(12181): Starting ad request. 03-02 17:30:58.799: W/Ads(5515): Error while connecting to ad server: failed to connect to googleads.g.doubleclick.net/74.125.225.250 (port 80) after 60000ms: isConnected failed:

How to integrate google+ sign in my android app?

霸气de小男生 提交于 2019-12-20 16:55:16
问题 Hello all actually i need to sign in people from google+ through my app now i read documentation on google where it isstated that To allow users to sign in, integrate Google Sign-In into your app. When you initialize the GoogleApiClient object, request the PLUS_LOGIN and PLUS_ME scopes mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(Scopes.PLUS_LOGIN) .addScope(Scopes.PLUS_ME) .build(); Now i

LocationServices.SettingsApi Reset SETTINGS_CHANGE_UNAVAILABLE flag

时光总嘲笑我的痴心妄想 提交于 2019-12-20 12:04:28
问题 Updating to Google Play Services v7.0+, and based in this sample for LocationUpdates in Android, I have the following code to connect to the LocationServices.SettingsApi and check if user has everything OK for the Application receive the location updates. LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder(); builder.addLocationRequest(mLocationRequest); mLocationSettingsRequest = builder.build(); PendingResult<LocationSettingsResult> result = LocationServices

LocationServices.SettingsApi Reset SETTINGS_CHANGE_UNAVAILABLE flag

倾然丶 夕夏残阳落幕 提交于 2019-12-20 12:03:29
问题 Updating to Google Play Services v7.0+, and based in this sample for LocationUpdates in Android, I have the following code to connect to the LocationServices.SettingsApi and check if user has everything OK for the Application receive the location updates. LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder(); builder.addLocationRequest(mLocationRequest); mLocationSettingsRequest = builder.build(); PendingResult<LocationSettingsResult> result = LocationServices

Gradle can not find google play dependency

依然范特西╮ 提交于 2019-12-20 10:54:32
问题 I try to repair the dependency to google play services in my android project. It already worked but now it is broken. I think this happened in between the Android Studio beta- and release-version. This is the dependency in the build.gradle file: dependencies { compile 'com.google.android.gms:play-services:6.5.87' } Android Studio was able to autocomplete the version string: '6.5.87' So I thought it knows how to solve the dependency. But it does not.. This is what I treid: reinstaled Android

com.google.android.gms.common.api.ApiException: 17: API: Drive.API_CONNECTIONLESS is not available on this device

六眼飞鱼酱① 提交于 2019-12-20 10:52:07
问题 Here is the story. I had integrated Google Drive Android SDK (8.1.0) into my app (AnyCopy) around three years ago. And I followed the tutorial to set up properly including adding credentials and api key. Everything worked okay. I could backup and restore my data without any problem. Even today it works okay if I download it from Google Play. Recently I have been trying to refactor AnyCopy and integrate the newest Google Drive Android SDK (Google Play Service Version number 12.0.1 )into my app

What is minimum version of Google Play Services to use Firebase?

有些话、适合烂在心里 提交于 2019-12-20 10:33:38
问题 Background I'm developing an app using Firebase features ( Realtime Database , Firebase Messaging, Analytics , Crash Reporting and Auth [ Facebook ]). In my country, most of the users don't have wifi and rarely upgrade apps (including Google Play Services ). Question As the title suggests, I would like to know the minimum version (the lowest). I'm also willing to remove some features if it will help to lower the Google Play Services version. Do I need to check google play service version in

GoogleAuthUtil.getToken SecurityException

我们两清 提交于 2019-12-20 10:33:13
问题 I was getting this failure on a ICS device with latest Google Play Services when trying to call GoogleAuthUtil.getToken(args). The issue was resolved by removing and adding Google account to the phone. I wasn't able to reproduce the error. Google searching stack trace provided no insights. Any ideas on how this issue could be prevented and what it means are appreciated! W/System.err( 3145): java.lang.SecurityException: Permission Denial: reading com.google.android.gsf.gservices

Missing api_key/current key with Google Services 3.0.0 and Maps API key in build.gradle

落爺英雄遲暮 提交于 2019-12-20 10:22:21
问题 my issue is quite similar to Missing api_key/current key with Google Services 3.0.0 but with a further level of complexity. I updated my app this morning to com.google.gms:google-services:3.0.0 and all the play-services 9.0.0 dependencies compile 'com.google.android.gms:play-services-analytics:9.0.0' compile 'com.google.android.gms:play-services-ads:9.0.0' compile 'com.google.android.gms:play-services-identity:9.0.0' compile 'com.google.android.gms:play-services-gcm:9.0.0' Now I get the