google-play-services

How to create API-15 emulator with Google Play Services (Command Line)

痴心易碎 提交于 2019-12-21 17:01:39
问题 One user of my app is facing certain issues specifically on API Level 15 (4.0.4) , and I would like to reproduce the issue on my end. I don't have a 4.0.4 device, and I would like to create and emulator for this purpose. I'm running Android Studio 2.0-beta6 , and the GUI AVD Manager does not show any API-15 emulator images at all. So, I have then used the standalone SDK manager to install an API-15 level x86 system image, and then created an AVD from command line as follows. $ android create

How to generate an Barcode and convert it to Bitmap using new Google Vision API?

家住魔仙堡 提交于 2019-12-21 16:56:47
问题 How to generate an Barcode and convert it to Bitmap using new Google Vision API? Barcode barcode = new Barcode(); Barcode.Email email = new Barcode.Email(); email.address = "my_email@gmail.com"; email.subject = "My Subject; email.body = "My body content."; barcode.email = email; //Implement conversion Bitmap barcodeImage = barcodeToBitmap(barcode);// I do know this part. 回答1: You can detect your barcodes using Google Vision API and then use ZXing to generate the barcodes. You could try

android turn-based multiplayer custom invite screen

微笑、不失礼 提交于 2019-12-21 12:59:32
问题 I am trying to create a custom UI screen for the "player picker UI" that comes with google play services for turn based multiplayer. The default one can be seen here: https://developers.google.com/games/services/android/realtimeMultiplayer?hl=fr-CH#invite_players_option That page(which is real time I know) mentions how to use the default UI and that a custom UI can be used, but does not mention the actual methods to customize the look. I'm not a fan of the huge icons, and would rather a

How to get refreshToken when using GoogleAuthUtil

吃可爱长大的小学妹 提交于 2019-12-21 12:10:10
问题 I'm using GoogleAuthUtil in Google Play Services on Android. After calling GoogleAuthUtil.getToken(context, userName, scope) , I got a token like this: ya29.wQBWztab5kcgMLcMbAI0LwFzHC_DPrxauSWbX4P6KOnBEOgjcm9V7OI9AFr6JGxDY54gP00RemzzgML56_gWRHn8Q5jK16BLY-0y83Gc5vfe3xN-QpyM4d7z This is an access_token, which can be used in calling Google Apis. Then, how can I get a refresh token to refresh this access_token, because I also use Google oauth java library and YouTube Java Library in my Android

AdMob from Google Play Services will perform undesired auto scrolling

ぃ、小莉子 提交于 2019-12-21 10:57:28
问题 I were using AdMob from Google Play services version 13. I realize, when I place the advertisement within ScrollView , AdMob will try to perform undesired auto scrolling, after it fetches the advertisement successfully from server. package com.example.admob_bug; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdSize; import com.google.android.gms.ads.AdView; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget

Android In-App Sandbox setting error for a particular Gmail ID

人走茶凉 提交于 2019-12-21 09:09:11
问题 My Project is in Plyatore beta. The project contains subscription as monthly and yearly. So I added a Sandbox settings with 8 Gmail id's for testing the subscription.Then I configure each Gmail id in device account settings, only two Id is getting purchase dialog. Remaining 6 Gmail id's are getting one error message as "the item you requested is not available for purchase". Is anyone has the same problem occurred, or anyone has the solution please help me to fix the issue. The mail id is

Gradle build fails with Google Service Plugin 3.2.0

时光怂恿深爱的人放手 提交于 2019-12-21 09:03:05
问题 I am attempting to update Google Services Plugin but receive an error during Gradle sync: "Project Refresh Failed: Error: No Match Found" Everything works fine with Version 3.1.1 but as soon as I update the build.gradle to: classpath 'com.google.gms:google-services:3.2.0' the error occurs. I checked the idea.log as the error suggested and can see that an exception is being thrown but I really do not know why. It seems to get thrown at a method named " getJsonLocations " which seems to be new

LocationRequest smallest displacement and accuracy

戏子无情 提交于 2019-12-21 09:00:28
问题 I'm building an Android app in which I need to have a very accurate location at a very high frequency. I dove into google play services api for location, and found the LocationRequest.setSmallestDisplacement very useful to limit battery consumption. However, as I am testing it indoor, the locations I get have an accuracy that varies a lot (sometimes 10m, sometimes 96m...), even when I set the Priority of my request as high accuracy. My prob1em is that setSmallestDisplacement doesn't give a sh

Android Dependencies references non existing library google-play-services_lib.jar

帅比萌擦擦* 提交于 2019-12-21 07:35:15
问题 I've been having a terrible time trying to get a simple Map to appear in an app as shown on the Google Maps v2 documentation. Eclipse keeps saying: The container 'Android Dependencies' references non existing library 'X:\Android Development\workspace\google-play-services_lib\bin\google-play-services_lib.jar' I found a couple people on here that had the problem and I followed those steps with no luck. I have Google Play Services installed and I even uninstalled and reinstalled it. I have

import google-play-service dependency red cross

房东的猫 提交于 2019-12-21 07:34:53
问题 I'm french and I would use "google-play-service" so I followed the procedure on the official web site to google here and here And I'm blocked at this step : To add the dependency to Google Play Services into your project Project -> Properties -> Android -> Library, Add -> google-play-services_lib " I explain: Normally the "dependency" must be a "green check" at left. After to press the button "Apply" the "green check" is always green, but when I leave the windows (whith press button "OK") and