google-play-services

GoogleApiClient is throwing “GoogleApiClient is not connected yet” AFTER onConnected function getting called

谁说我不能喝 提交于 2019-12-27 12:19:09
问题 So i found something that is not very clear for me about GoogleApiClient. GoogleApiClient has a function called onConnected which is ran when the client is connected (for sure) I got my own function called: startLocationListening which is eventually getting called on GoogleApiClient's onConnected function. So my startLocationListening function couldnt ran without a GoogleApiClient connection. Code and log: @Override public void onConnected(Bundle bundle) { log("Google_Api_Client:connected.");

Import Google Play Services library in Android Studio

走远了吗. 提交于 2019-12-27 11:24:37
问题 I have an Android project that has been developed entirely within Android Studio (currently version 4.2, gradle version 1.9-all). I want to add functionality from Google Play Services. The project is unable to resolve GooglePlayServicesUtil , and when I enter the import manually (shown below), I get Cannot resolve symbol 'common' . import com.google.android.gms.common.GooglePlayServicesUtil; Any idea what I need to do to get GooglePlayServicesUtil to resolve? What I've Tried From the Google

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

扶醉桌前 提交于 2019-12-27 11:08:07
问题 I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone have a solution to remove these unwanted permissions? I am only using the ads function (INTERNET and ACCESSNETWORK_STATE). I got no need for the LOCATION and USE_CREDENTIALS permissions. How do you remove these unwanted permissions? I noticed that

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

二次信任 提交于 2019-12-27 11:05:25
问题 I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone have a solution to remove these unwanted permissions? I am only using the ads function (INTERNET and ACCESSNETWORK_STATE). I got no need for the LOCATION and USE_CREDENTIALS permissions. How do you remove these unwanted permissions? I noticed that

Reliable source for older releases of Google Play Services API

☆樱花仙子☆ 提交于 2019-12-25 17:58:49
问题 I'm working on an App that uses Google Play Services' GcmNetworkManager. This feature was introduced in v7.5, so to maximize the number of devices where my app will not need to ask the user to update Google Play Services, I would like to build my app against that version of the API files. Unfortunately, I don't seem to be able to select an older version in the Android SDK Manager. There are several websites that come up in a Google search that provide older API versions, but none of them seem

Reliable source for older releases of Google Play Services API

流过昼夜 提交于 2019-12-25 17:58:09
问题 I'm working on an App that uses Google Play Services' GcmNetworkManager. This feature was introduced in v7.5, so to maximize the number of devices where my app will not need to ask the user to update Google Play Services, I would like to build my app against that version of the API files. Unfortunately, I don't seem to be able to select an older version in the Android SDK Manager. There are several websites that come up in a Google search that provide older API versions, but none of them seem

Reliable source for older releases of Google Play Services API

纵饮孤独 提交于 2019-12-25 17:58:06
问题 I'm working on an App that uses Google Play Services' GcmNetworkManager. This feature was introduced in v7.5, so to maximize the number of devices where my app will not need to ask the user to update Google Play Services, I would like to build my app against that version of the API files. Unfortunately, I don't seem to be able to select an older version in the Android SDK Manager. There are several websites that come up in a Google search that provide older API versions, but none of them seem

How to show a stock panorama activity with UI elements overlayed?

白昼怎懂夜的黑 提交于 2019-12-25 17:14:56
问题 I am successfully showing a spherical image using the Google Panorama API I am using the same code as most tutorials do: @Override public void onConnected(Bundle bundle){ Panorama.PanoramaApi.loadPanoramaInfo(GOOGLE_CLIENT,Uri.parse(url)).setResultCallback( new ResultCallback<PanoramaApi.PanoramaResult>(){ @Override public void onResult(PanoramaApi.PanoramaResult result){ if (result.getStatus().isSuccess()){ Intent intent = result.getViewerIntent(); if (intent != null){ startActivity(intent);

what is Google Play services MeasurementBrokerService and how to stop it?

荒凉一梦 提交于 2019-12-25 17:02:12
问题 I have created a Service which listens to a Firebase location. This is a simple service with low memory usage. Unfortunately, I am seeing a Google play services service called MeasurementBrokerService joining my service and not freeing memory. Unlike a related question : "Service MeasurementBrokerService is in use" is showing in my application process The above question has no accepted answer, so kindly do not mark this as a duplicate I am not using firebase-appindexing. Following is my app

what is Google Play services MeasurementBrokerService and how to stop it?

我与影子孤独终老i 提交于 2019-12-25 17:01:02
问题 I have created a Service which listens to a Firebase location. This is a simple service with low memory usage. Unfortunately, I am seeing a Google play services service called MeasurementBrokerService joining my service and not freeing memory. Unlike a related question : "Service MeasurementBrokerService is in use" is showing in my application process The above question has no accepted answer, so kindly do not mark this as a duplicate I am not using firebase-appindexing. Following is my app