Questions tagged [android-googleapiclient]

169 questions
0
votes
1 answer

Google Fit can't be read in background?

I am trying to read Google Fit data in my app. I have written the code and it works great. I created an AlarmMangaer and put the fit data read in there but it seems like even though the alarm is being called, the fit data is not read unless the app…
0
votes
2 answers

Google Map Display English view in Arabic

I am using google map and it is display in arabic view in arabic os mobile, But i need to display english view in Arabic os mobile. So, is this possible for google map language is changed?
Najib.Nj
  • 3,706
  • 1
  • 25
  • 39
0
votes
1 answer

Get BirthDay from GooglePlus sign in and Twitter SignIn

I am using google plus and twitter sign in in my application. I need to access Birthday after particular sign in. How can I get birthday from twitter and googleplus sign in.
0
votes
2 answers

Android App still remains connected to Google Sign in even after Uninstalling and reinstalling it

I have this strange problem in my App. My app has a GSigninActivity which is shown after Splash screen to facilitate Single Sign On with Google and Firebase. The problem is that on First Install and Launch, the app directly goes MainActivity without…
Joel Mathew
  • 40
  • 1
  • 6
0
votes
1 answer

best practice to manage GoogleApiClient

I have a background service which runs in the background tracking device location using a PendingIntent. The service calls mFusedLocationClient.requestLocationUpdates(mLocationRequest, locationRequest, pendingIntent) to start location tracking but…
Don Box
  • 3,166
  • 3
  • 26
  • 55
0
votes
1 answer

How to Signout GoogleApiClint from another Activity or Fragment android

i am using Google Api Clint for login with google account. my code is working fine, but when i am trying to sign out from a fragment Logout.java, its not working please see my login Activity code below. in oncreate GoogleSignInOptions gso = new…
0
votes
1 answer

How to make the Google client api connection?

I am facing the issue in creating the google api client connection preference screen. The google api client is connected success in the oncreateView() method but my problem is the google api client must connect when the preference switch is on the…
Prabha Karan
  • 1,309
  • 3
  • 17
  • 35
0
votes
0 answers

2nd activity crashing when trying to get current location due to 1st activity not stopping

I have one activity, activity A, that uses google maps API to display the user on the map and get location data. When the user clicks on a button they are taken to activity B in which it's supposed to get location data. My issue is that I have a…
0
votes
2 answers

Cannot resolve symbol GOOGLE_SIGN_IN_API.. Google sign-in in my app, Unable to access variable Auth.GOOGLE_SIGN_IN_API

I've been integrating Google Sign-In into my Android App. I have been following the Android tuorial from Google. (https://developers.google.com/identity/sign-in/android/sign-in) During the process I encountered this problem. // Build a…
Febin K R
  • 886
  • 2
  • 11
  • 21
0
votes
0 answers

Get user email information after onConnected callback in google

I am using GoogleApiClient to authorize user in my app. Building google api client using: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .requestProfile() …
0
votes
1 answer

onLocationChanged not working if time intervel not set in LocationRequest

when i set time intervel in LocationRequest then location getting perfectly using this code private static final long INTERVAL = 500 * 1; private static final long FASTEST_INTERVAL = 500 * 1; private static final int SMALLEST_DISPLACEMENT =…
Hitesh Gehlot
  • 1,307
  • 1
  • 15
  • 30
0
votes
1 answer

IllegalArgumentException: GoogleApiClient parameter is required

First of all sorry for asking this silly question. As i am new to android so i am trying to make an app in which first there will dialog box open for asking the permission to turn on the GPS like google maps or ola do. Then after that i wanted to…
0
votes
0 answers

GoogleApiClient onConnected event is not triggered from from stand alone module

I'm new to JAVA and ANDROID and tried to build an app to have the location as per this, so I wrote the below helper code: package oryx.tecna.locateme; import android.Manifest; import android.content.Context; import…
0
votes
0 answers

GoogleApiClient stops to work properly after GPS turned on/off

I'm trying to implement abstract Activity, whose inheritants would be able to get Location data. I'm strictly following this guide, that seems pretty straightforward. But after all I have a few problems. Google API should pass location data even if…
0
votes
1 answer

get location using GoogleAPIClient in Service

I want to get location in background so that I can fetch location from any activity/fragment. problem is I'm not getting the latitude and longitude in Service. Is there something I'm doing wrong here? public class LocationService extends Service…
Sammy
  • 181
  • 3
  • 18