Questions tagged [android-googleapiclient]
169 questions
2
votes
1 answer
getting location updates with background service
i have just started to learn how to use services, and i am trying to build an app which sets off an alarm when the device is in a certain distance from a location that the user defined.
i read a couple of tutorial and wrote this:
package…

user3542927
- 51
- 1
- 3
- 9
2
votes
1 answer
Why does Android FusedLocationProviderApi requestLocationUpdates send updates with weird keys?
I'm using com.google.android.gms:play-services:7.3.0. This did not happen with 6.5.
The documentation says:
Location updates are sent with a key of KEY_LOCATION_CHANGED and a Location value on the intent.
Well, that much is true. It also sends…

Keith Carter
- 422
- 1
- 6
- 18
1
vote
1 answer
Using token of play-services-auth to authenticate with Google Analytics Data API in Android
I want to call Google Analytics Data API and Google Analytics Management API with Java client APIs.
In the example they use a service account configured in a json file.
As I'm integrating other Google APIs as well, I use Google Play Services Auth…

Aorlinn
- 718
- 5
- 16
1
vote
0 answers
React Native Android Application Security check shows outgoing traffic to googleapis.com
I have developed ReactNative mobile application, When I run security tests using [ImmuniWeb] report shows me that my application makes post request to 'https://www.googleapis.com/experimentsandconfigs/v1/getExperimentsAndConfigs'1 I have not used…

Javed Salat
- 526
- 4
- 10
- 26
1
vote
0 answers
Firebase Google Signin error: com.google.android.gms.common.api.ApiException: 10
First Image:
Second Image:
Here is my code to create the GoogleSignInOptions object. In the requestIdToken argument, I put the web client id from the firebase console of my app(Check first image).
But i read an article that web client id should…

Shikhar
- 644
- 1
- 10
- 20
1
vote
1 answer
Why fusedLocationProviderClient.getLastLocation never call OnSuccessListener?
On kitkat, when i do
fusedLocationProviderClient.getLastLocation()
.addOnSuccessListener(new OnSuccessListener() {
@Override
public void onSuccess(Location location) {
if (location == null) {
Log.w(TAG,…

zeus
- 12,173
- 9
- 63
- 184
1
vote
0 answers
Google Calendar API Error?
I tried to get the Free Time slots from the Google calendar API using android studio.
MainActivity.java(Part of code)
This is i tried code for get the Free Time slots.
private List getDataFromApi() throws IOException {
// …

Testing1996
- 35
- 7
1
vote
1 answer
How can I take the Google Calendar free slots list for the current date using Android Studio?
I take the Event list from the Android developer tutorial like this:
private List getDataFromApi() throws IOException {
// List the next 10 events from the primary calendar.
DateTime now = new…

Researcher1996
- 23
- 3
1
vote
0 answers
Wrong values for calories in google fit
I'm trying to get the number of calories burn in a day, day which is set in a calendar. The problem is that the numbers for calories for each day have value between 1400 and 1500, even if i select a day from the future.
private void updateInfo()…

thmmy95
- 361
- 2
- 18
1
vote
0 answers
How to differentiate bettween .ai and .eps file in Android
I'm having trouble to differentiate bettween .ai and .eps file ... Actually I was trying to get actual MIME type from Google drive with extention !!!
Google drive gives response application/postscript for both .eps file and also for .ai file as MIME…

Tarit Ray
- 944
- 12
- 24
1
vote
1 answer
GoogleSignIn Works But Google_DEFAULT_GAMES Doesn't
When I call GoogleSignInOptions from the default sign-in option, I get a signIn UI displayed
GoogleSignInOptions ClientInfo = GoogleSignInOptions.Builder.(GoogleSignInOptions.DEFAULT_SIGN_IN).requestEmail().build();
GoogleSignInClient…

Samuel Musa
- 11
- 1
1
vote
1 answer
Change 2nd parameter of method 'PlaceAutocompleteAdapter' from 'GeoDataClient' to 'GoogleApiClient'
i ma making AutoCompleteTextView in my adapter for which when i make object of PlaceAutocompleteAdapter when i pass GoogleApiClient object as second parameter to my PlaceAutocompleteAdapter it gives me red error and sys to pass GEODataClient object…

Umair
- 585
- 3
- 9
- 21
1
vote
2 answers
GoogleAPIClient Connection in onCreate vs onStart
Excerpt from Google API Client documentation,
public GoogleApiClient.Builder enableAutoManage (FragmentActivity
fragmentActivity, GoogleApiClient.OnConnectionFailedListener
unresolvedConnectionFailedListener)
Enables automatic lifecycle management…

Ahmed
- 2,966
- 7
- 42
- 69
1
vote
0 answers
Google Play network connection doesnt work
I am trying to connect my App to Google Play Services, for to add games achievements, but it doesn´t connect. It returns me this message:
Failed to sign in. Please check your network connection and try again.
I reinstalled Google Services, and it…

Rubén Navarro Davó
- 144
- 1
- 14
1
vote
1 answer
Use of GoogleApiClient hanging app
In my app I have 4 to 5 fragments and all fragment needed GoogleApiCLient object to get current location and to do other related things.
So, I just using GoogleApiClient as below :
First I implementing as :
implements…

Mashuk Khan
- 67
- 11