Questions tagged [android-googleapiclient]

169 questions
0
votes
1 answer

Google play services not working in x86 emulator

I am using Google plus login in my app. For this I've added dependency compile 'com.google.android.gms:play-services-plus:7.5.0' in build.gradle. I am using emulator with api 19 with arm system image. It works fine on this emulator. But I tried the…
0
votes
1 answer

Using GoogleApiClient vs usual way with Http and JSON

I have a question about using GoogleApiClient. Is it necessary to use this Object or is it ok to use HttpUrlConnection and send requests as I did it many times? Now, I am also developing Android - app, where important to use Google Places API. But I…
Mikhail Valuyskiy
  • 1,238
  • 2
  • 16
  • 31
0
votes
1 answer

Android Google Sign In for Leaderboards

I am trying to update score using Google Leaderboards, for using Leaderboards I have to use Google SignIn API, my code is copied from https://developers.google.com and i have followed all the steps, created sha1 using: keytool -exportcert -alias…
Usman
  • 1,116
  • 11
  • 13
0
votes
1 answer

Android : Google Sign In GoogleApiClient.connect()

the following code is copied from www.developers.google.com i want to implement Google Sign In functionality, but unable to do so. when i click on SignIn Button it asks for permission and does some searching then Nothing happens, if i call…
Usman
  • 1,116
  • 11
  • 13
0
votes
1 answer

Google Play Services unavailable when trying to Log In with Google+

I'm trying to implement Google+ login in my application but it won't work. Everytime I click log in, the onConnectionFailed gets called as soon as I choose the account. Could someone please let me know what's wrong? public class LoginActivity…
Guy
  • 6,414
  • 19
  • 66
  • 136
0
votes
1 answer

setRetainInstance in NavigationDrawer

I found a lot of informations about the setRetainInstance method, but I'd like to know how to implement this method in a Navigation Drawer Activity? I basically have: An Activity, that contains... a NavigationDrawerFragment, that contains... a…
theRunner
  • 179
  • 1
  • 8
0
votes
1 answer

Android Social media Login integration : Profile data to android local storage

I am implementing google/facebook login for an android application. Now, this is pretty straight forward to fetch information like user email and name, birthday etc. Although, I am curious about what is the best way to handle the profile image…
Sushant kunal
  • 341
  • 1
  • 2
  • 9
0
votes
2 answers

Android - GoogleApiClient ActivityRecognitionIntentService is never called

I need to detect user dynamics in my application. I started by using GooglePlayServicesClient which till three months ago worked perfectly, Then it stopped working on my HTC one device (although it was still working on three different devices I've…
user_s
  • 1,058
  • 2
  • 12
  • 35
-1
votes
1 answer

android google maps marker null pointer error

I'm making a search bar with google maps. If I try to search somewhere the app will shutdown And this is the error I get Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.maps.model.Marker…
-1
votes
1 answer

I am confuse between both of them which one is the best GoogleApiClient or FusedLocationProviderClient

I am confuse between both of them which one is the best GoogleApiClient or FusedLocationProviderClient. Some people use GoogleApiClient and some use FusedLocationProviderClient.I am confuse between both of them which one is the best I am beginer i…
-1
votes
1 answer

How to connect GoogleApiClient to google play services?

I am facing the issue in creating the google api connection in Preference Fragment ,I created GoogleApiClient connection in an activity but in fragment is connectiong. When the fragment is appeared the connection failed is shown. The code for …
Prabha Karan
  • 1,309
  • 3
  • 17
  • 35
-1
votes
3 answers

Google Api Client give null onConnected method and getting LastLocation also null

Google client implementation is given below: if (mGoogleApiClient == null) { mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks((GoogleApiClient.ConnectionCallbacks) this) …
Nikhil Sharma
  • 593
  • 7
  • 23
-1
votes
2 answers

Why My android app crashes as soon as I open it in device 4.4.3 but not in device 5.0 or above

I have used facebook sdk for log in with facebook and also google map for user current position. It run well in android 5.o or above but crashes in android 4.4.3. I have used following configuration. android { compileSdkVersion 24 …
-1
votes
1 answer

context is null in isolated process

I have the next method: protected synchronized void buildGoogleApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(context) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) …
Khalil
  • 24
  • 1
  • 4
-1
votes
1 answer

Displaying current location on a map

The code that i wrote is supposed to show the location of the device on a map when the user opens the app.So i tried it on my phone and when i opened it i could see my location, however i walked about 2 km from that location and then opened the app…
1 2 3
11
12