google-play-services

Unable to Connect To GoogleFit

三世轮回 提交于 2019-12-18 09:22:11
问题 I am trying to connect to Googlefit but i am getting a strange error code as below E/GooglePlayServicesUtil﹕ Unexpected error code 5005 Does anybody have any idea about this.Thanks In advance 回答1: I solved the error with the help of the answer in this post: https://stackoverflow.com/a/28391583/2977169 @Sumoanand: I also faced similar problem. This issue occurs if app is not registered properly in google developer console. I think you have registered app on Google developer Console using

TBMP Skeleton: Why are both onTurnBasedMatchReceived and onInvitationReceived not called on my physical device?

↘锁芯ラ 提交于 2019-12-18 09:13:42
问题 Currently, im trying to run tbmp skeleton sample and my set up is a physical 4.2.2 android device and a 4.3 genymotion emulator. Everything is working on both sides, except that my physical device isnt displaying the Toast notification when i take a turn in the emulator or when i send invitation. The emulator is displaying everything just fine, but for some reason, this 2 methods just dont get called in the physical device. The Code: public class SkeletonActivity extends BaseGameActivity

Google fit Recording API delay

对着背影说爱祢 提交于 2019-12-18 08:56:41
问题 So I'm writing a fitness application for android. I'm using the Google fit API to count the steps. I'm using the Recording API to count the steps when the app is in the background. Once the app is in the foreground I'm fetching the steps count with the History API to show it on the screen. What happens is that the count is not correct. There is a delay until you get the correct and updated count. To be more specific no data is being lost. I guess that the Recording API is updating with a

Getting error in google fit “Connection failed. Cause: ConnectionResult{statusCode=unknown status code 5005, resolution=null}”

被刻印的时光 ゝ 提交于 2019-12-18 08:46:08
问题 I have tried to develop application using google fit. I follow This link When i try to run that application i got the following error 10-27 11:55:19.966: I/Google Fit(6016): Connection failed. Cause: ConnectionResult{statusCode=unknown status code 5005, resolution=null} 10-27 11:55:19.966: E/GooglePlayServicesUtil(6016): Unexpected error code 5005 回答1: Finally i found that issues. We need to save the content in consent screen under oath and api 回答2: I had this error and the consent screen had

How to upload a file to google drive folder using android google drive sdk

谁都会走 提交于 2019-12-18 07:05:03
问题 Using the bellow snippet I am able to access folder which I have already created with the same app. I am using 'com.google.android.gms:play-services-drive:9.0.0' library and referring google drive sample on github. using the sample CreateFolderInFolderActivity.java I am able to create folder inside an existing folder. Instead of creating folder I need to create a file inside existing folder. public class CreateFileInsideFolderActivity extends BaseDemoActivity { private static final String TAG

How do you integrate the new Google Sign-In on a Xamarin.Android app?

隐身守侯 提交于 2019-12-18 05:00:13
问题 I am attempting to follow Google's instructions on how to add the new Google Sign-In (not the old Google+ Sign-In) to my Xamarin.Android app. For the life of me, I cannot find the correct Google Play Services NuGet package or Xamarin component that supports the new sign-in system. When I add the following code to the activity, I get "The type or namespace 'GoogleSignInOptions' could not be found. Are you missing an assembly reference?" build error. // Configure sign-in to request the user's

Should we prefer AdMob in Google Play services compared to “old” AdMob SDK

巧了我就是萌 提交于 2019-12-18 03:21:39
问题 I just realized Google embeds AdMob into latest Google Play services (4+) I was wondering, should I prefer https://developers.google.com/mobile-ads-sdk/docs/#play over https://developers.google.com/mobile-ads-sdk/docs/#android ? As I do not see Google official stand on this. The reason I ask so, I found AdMob from Google Play services is pretty buggy still. This is my observation. Create an smart banner from Java code, and place it in a middle of a scroll view. Whenever the smart banner

Google map marker is replaced by bounding rectangle on zoom

ぃ、小莉子 提交于 2019-12-18 02:40:34
问题 I'm using SupportMapFragment inside Fragment and recent Android Map Utils for clustering. After Google Play Services update to 9.0.83 google single map markers are replaced by bounding rectangle on zoom. Only single markers are replaced, cluster markers are fine. Changing hardware acceleration parameter in app manifest doesn't change anything. How to fix it? P.S. compile 'com.google.android.gms:play-services-maps:8.4.0' 回答1: I use simplified version of @bishop87's workaround from issue on

“Service MeasurementBrokerService is in use” is showing in my application process

邮差的信 提交于 2019-12-17 23:28:17
问题 I have encountered an issue that GooglePlayServices app is using my application process for their service and also showing the processes count as 2. I have attached the screenshot for the same. I have no idea why it is happening. It is taking more memory compare to my app process. Someone please can help me on this. Showing two processes here 回答1: I encountered this today after I added gcm to my app and can't figure out what exactly is the use of this MeasurementBrokerService . The only thing

Android Studio 2.2 Google play services sync Error

China☆狼群 提交于 2019-12-17 23:16:55
问题 I have update to android studio 2.2 I started a new project and i included compile 'com.google.android.gms:play-services-vision:9.4.0+' in my dependencies. I am getting this Error when im launching the gradle sync. Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies] Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file D:\Android\cloned apps\android-vision-master