google-play-services

Activity Recognition API

孤人 提交于 2019-12-20 08:49:45
问题 Anyone have trouble with the Activity Recognition API in the recent Google Play Services update? I have it implemented in an app. It was working perfectly fine before the 5.0 update. Now it returns IN_VEHICLE when the user is walking or sitting still. :/ And doesn't return WALKING , RUNNING or ON_FOOT at all. Were there any changes to the Activity Recognition API I should be aware of? Let me know if you need any more details. 回答1: The WALKING and RUNNING activities come in as secondary

App won't run unless you update Google Play services

谁说我不能喝 提交于 2019-12-20 06:27:42
问题 I'm fairly new to developing and have my Google Maps API working perfectly, only snag I have is that in my gradle dependencies I have to compile 'com.google.android.gms:play-services:9.+' instead of play-services 10.0.1. When I use 10.0.1 on my emulator (the android studio emulator, api25), I open my maps activity I just get com.android.tools.fd.runtime.BootstrapApplication won't run unless you update Google Play services. I have all the needed packages installed and everything, not sure why,

Integrating Google Play services achievements and android notifications

好久不见. 提交于 2019-12-20 06:17:17
问题 I am using Google Play services to set up achievements for an android game. Goal: In my onAchievmentUnlocked callback I want to send a notification to the device that opens the achievement screen when the user touches the notification (from wherever they are). What works : The notification gets sent properly and all the icons etc. are visible. Touching the notificatoin does nothing though. The achievement activity does work, since I have an Option Menu item to call it up in the app via this

Android Activity Recognition not working with Nexus 5

懵懂的女人 提交于 2019-12-20 05:48:12
问题 I had a code working that was using Google's Activity Recognition Updates. Now all of a sudden these seem to send updates either several times per second or never although requested every 20 seconds. I haven't changed the code and checked earlier versions but got the same problem. I built a minimal example from the tutorial but also get no activity updates with my Nexus 5 device. With my HTC Desire (MildWild 5.0 based on Android 2.3.7) it works perfectly fine. I suspected Google Play Services

Enforce Drive API for Android to work online mode only

↘锁芯ラ 提交于 2019-12-20 05:25:10
问题 Recently, I just manage to migrate Drive API related code from Google APIs Client Library for Java to Google Play services client library The following code is search a file in appdata folder, then download it as temp file. private static GoogleCloudFile searchFromGoogleDrive(GoogleApiClient googleApiClient, HandleStatusable h, PublishProgressable p) { DriveFolder driveFolder = Drive.DriveApi.getAppFolder(googleApiClient); final String titleName = ("my-title"); Query query = new Query.Builder

W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8107534

不想你离开。 提交于 2019-12-20 04:52:55
问题 As many other questions here on SO, I encounter a similar error message. Unlike other questions, this is regarding a hardware debugged device. My gradle wear-build file looks like this: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.support:wearable:1.2.0' compile 'com.google.android.gms:play-services-wearable:8.3.0' compile 'com.android.support:appcompat-v7:23.1.0' } Debuggin the app within the emulator works fine but as soon as I release the app

Getting “more than one library with package name 'com.google.android.gms'” when running wear module

烂漫一生 提交于 2019-12-20 04:42:23
问题 I'm adding a wear module to an app. (using this sample code as a reference) So I have 3 modules, each one depends on a version of com.google.android.gms:play-services: app - compile 'com.google.android.gms:play-services:6.1.11' wear - 'com.google.android.gms:play-services-wearable:6.5.+' shared - compile 'com.google.android.gms:play-services:6.1.11' When compiling the Wear module, I get this error: Error:Execution failed for task ':wear:processDebugResources'. Error: more than one library

Google Places API Android resultCallback not firing

时光毁灭记忆、已成空白 提交于 2019-12-20 04:08:23
问题 I'm using the Google Places API for Android and I can't seem to get a resultCallback from a PendingResult to fire. Here's my code (essentially identical to the sample code to https://github.com/googlesamples/android-play-places/tree/master/PlaceComplete except in a Dialog) adapter = ((MainActivity) getActivity()).getAdapter(); googleApiClient = ((MainActivity) getActivity()).getGoogleApiClient(); final AutoCompleteTextView tvCity = new AutoCompleteTextView(getActivity()); tvCity.setAdapter

Google Places API Android resultCallback not firing

穿精又带淫゛_ 提交于 2019-12-20 04:07:26
问题 I'm using the Google Places API for Android and I can't seem to get a resultCallback from a PendingResult to fire. Here's my code (essentially identical to the sample code to https://github.com/googlesamples/android-play-places/tree/master/PlaceComplete except in a Dialog) adapter = ((MainActivity) getActivity()).getAdapter(); googleApiClient = ((MainActivity) getActivity()).getGoogleApiClient(); final AutoCompleteTextView tvCity = new AutoCompleteTextView(getActivity()); tvCity.setAdapter

Google Play Services resultCode = 10004

試著忘記壹切 提交于 2019-12-20 03:32:11
问题 I used the google demo example TypeANumber from developer.android.com/training. I configured the app correctly in the play.google.com developer console, even published it, configured as well correctly the game service TypeANumber in the developer console and linked the previous mentioned app, even published the service and I still keep getting the resultCode 10004 which stands for public static final int RESULT_APP_MISCONFIGURED Result code sent back to the calling Activity when the game is