google-play-services

Does Google Play Apps Testing work?

断了今生、忘了曾经 提交于 2019-12-23 00:49:49
问题 I am trying to test an android app. I've uploaded an APK to the "Alpha" section, but the given link returns error 500: "Share the following link with your testers: https://play.google.com/apps/testing/program". The Beta version returns the same error. Of course, my app is already published but only as Alpha version. Does someone have a workaround for this? Or I must publish a working version on Google Play first? Or there is another problem of the "Error 500" for testing link? 回答1: From

Admob with Cordova 3 and Google play services

╄→гoц情女王★ 提交于 2019-12-22 18:47:21
问题 I am trying to get AdMob on my Phonegap/Cordova 3 application but not sure if I am using the correct plugin. I have tried these two plugins below but cant seem to get them to work. I am just wondering if someone could confirm these plugins are working with latest Cordova 3 and google play services. https://github.com/floatinghotpot/cordova-plugin-admob https://github.com/aliokan/cordova-plugin-admob These plugins seem to be using Admob plugin but now Android uses Google play services so is

Android In App Updates - Not able to detect the update in AppUpdateInfo

大兔子大兔子 提交于 2019-12-22 18:19:32
问题 Some log statements are thrown when we use, Task<AppUpdateInfo> appUpdateInfoTask = appUpdateManager.getAppUpdateInfo(); appUpdateInfoTask.addOnSuccessListener(appUpdateInfo -> { 2019-06-13 18:30:40.556 28375-28375/com.marsplay.debug I/PlayCore: UID: [10312] PID: [28375] AppUpdateService : requestUpdateInfo(<"package name here">) 2019-06-13 18:30:40.556 28375-28584/com.marsplay.debug I/PlayCore: UID: [10312] PID: [28375] AppUpdateService : Initiate binding to the service. 2019-06-13 18:30:40

Multi-project setup with Gradle for Android

ε祈祈猫儿з 提交于 2019-12-22 18:18:52
问题 I am having a problem to make my Android application build. I have one Main application module, and another one that is needed for the google-play-services_lib. My folder structure is as follows: ParkingApp | |-----> google-play-services_lib (Library Project) |-----> ParkingApp |-----> settings.gradle My settings.gradle file is as follows: include ':ParkingApp', ':google-play-services_lib' My ParkingApp has the following build.gradle. buildscript { repositories { maven { url 'http://repo1

How to use the DriveApi.OnSyncFinishCallback (Android's Google Play Services)

无人久伴 提交于 2019-12-22 14:09:06
问题 The Android's developer documentation states that you can use a DriveApi.OnSyncFinishCallback to (presumably) handle when a synchronization between your local contet and your google drive account is completed. Normally such synchronization appens automatically, trasparently managed by Google Play Services, but apparently you can force a sync request with a call to: Drive.DriveApi.requestSync(mGoogleApiClient); I say "apparently" because the official documentation of this function is very poor

How can I avoid user being prompted a second time for Google account selection?

元气小坏坏 提交于 2019-12-22 13:56:17
问题 I'm developing and Android app with Google Play Games Services and I've followed the getting started guide by importing the BaseGameUtils as a module into my IntelliJ project. This is now working fine except that whenever I open an activity which inherits BaseGameActivity and call beginUserInitiatedSignIn() , the user is prompted to select which Google account to connect with (if more than one is present at the phone). Now this would be fine if it weren't for the fact that in my app, the user

Android Things - can't use Awareness API

寵の児 提交于 2019-12-22 13:31:05
问题 I have the same code with a lower version (9.4.0) working on the phone but for some reason it won't work on RPi3? My build.gradle compile 'com.google.android.gms:play-services:10.0.0' provided 'com.google.android.things:androidthings:0.4-devpreview' The manifest permissions <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" /> The method private void getWeather() { // Check for permission first if

Get Google account domain in Android

旧时模样 提交于 2019-12-22 12:39:34
问题 I am using Google+ Sign-In in my Android app. How can I get the domain of the authenticated user's account? It is not a property on the com.google.android.gms.plus.model.people.Person model. Specifically I only want people from one company to be able to access the app using their work Google accounts (everyone in the company has one). I can of course retrieve the email address using Plus.AccountApi.getAccountName(mGoogleApiClient); and could check the domain of the email address, but that

lastKnownLocation is always returning null when gps is off

喜夏-厌秋 提交于 2019-12-22 12:19:52
问题 I am using Google Service API , LocationServices.FusedLocationApi to find user's current and then updated Location. I have tested on emulator as well as on actual device and I have found that if I turn off GPS LocationServices.FusedLocationApi.getLastLocation() always returns null, however I get a valid value if I turn on the GPS. Here is the code which I am using: private GoogleApiClient mGoogleApiClient; private Location mLastKnownLocation; mLastKnownLocation = LocationServices

How to get user's current location in Android

吃可爱长大的小学妹 提交于 2019-12-22 11:19:21
问题 I want to fetch user's current lat long on click of a button. I know that you can get the last known location using FusedLocationApi. But what I am not able to understand is, gps or location services needs to be turned on for this? If yes, how to check that the user has turned on location and get the current location. Also, how to include marshmallow permission checks in getting the location. I have already referred: 1) googlesamples/android-play-location 2) googlesamples/android