Questions tagged [android-googleapiclient]

169 questions
0
votes
4 answers

Android Google Play Games Services

Trying to integrate google play games leaderboard in an android application. Google API client get connected successfully. I am getting result code as -1 which is nothing but RESULT_OK. But when I call google leaderboard api using leaderboard…
0
votes
2 answers

android - onLocationChanged is called even when there is not internet available

I was just wondering about this, because it doesn't make sense. I have an GoogleApiClient which I connect, and after that I request location updates using LocationServices.FusedLocationApi.requestLocationUpdates( googleApiClient, mLocationRequest,…
0
votes
1 answer

How to solve geofence mock_location error?

so im running this sample app i got on github which deals with google maps and geo fences: https://github.com/androidfu/GeofenceExample And when I run the code I get this error : Caused by: java.lang.SecurityException:…
0
votes
1 answer

Android Google Map V2 Draw a crosshair in center of map screen

I am developing an android application using google maps. I want to show a crosshair in center of screen and then would like to plot marker at center when user clicks button. So my question is how to draw a cross hair on maps. I searched for this…
0
votes
1 answer

GoogleApiClient Location Dialog - Get Yes/No button callback

Where would I get callback for the positive/negetive - Yes/No buttons for this dialog? Also, how can I customize the text on this Dialog? Instead of this app I want to insert my App name. And I don't want the part that says Use Google's location…
LEE
  • 3,335
  • 8
  • 40
  • 70
0
votes
0 answers

Google Drive api client scope giving prob

I want to list the files and folders in google drive of any user with my app. I am using the following code: mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Drive.API) .addScope(new…
dev_android
  • 8,698
  • 22
  • 91
  • 148
0
votes
1 answer

Cannot resolve method getLocationSettingsStates()

I'm trying to implement Google Play Service Location APIs to use localization in my APP. protected void createLocationRequest() { // Create an instance of GoogleAPIClient. if (mGoogleApiClient == null) { mGoogleApiClient = new…
F.M.
  • 243
  • 2
  • 8
  • 23
0
votes
1 answer

onConnected() not being called when I am trying to retrieve the last known location even after adding callbacks

This is my MainActivity I want to retrieve the last known location of my device, I have added the run-time permissions and the callbacks as well. package silive.in.weather.Activities; import android.app.ProgressDialog; import…
Akriti
  • 773
  • 1
  • 10
  • 19
0
votes
1 answer

How do I wait for onConnected() method to be called to get Lat,Long from a Generic Class when referenced from Activity in Android?

I was planning to get Latitude Longitude in an Activity from a Generic class. GPSResource gpsResource = new GPSResource(getApplicationContext()); double lat = gpsResource.getLatitude(); This always returns null. How should I modify the code…
Anirudh
  • 2,767
  • 5
  • 69
  • 119
0
votes
1 answer

Application crashes on resuming when using GoogleApiClient

i'm using GoogleApiClient in my android app and experiencing a crash when my app is resuming. The code looks like this: MainActivity signature: public class MainActivity : AppCompatActivity, GoogleApiClient.IOnConnectionFailedListener,…
Alias
  • 341
  • 2
  • 3
  • 14
0
votes
0 answers

Login failed while adding the functionality of Google+ Login

I have added the functionality of the Google+ login. But when I am clicking on the button of the login it is coming to the else condition block and hence login failed. i can't understand whats wrong I am doing the code? I am attaching the code of…
0
votes
1 answer

Google Fit Android API saving all devices' data but not able to query different device's data

I am creating an exercise app that records pushups. My goal is to have the data integrated with Google Fit so that it will sync between devices or in the case where the user gets a new device. I have successfully been able to insert data into Google…
0
votes
3 answers

google maps are returning null pointer exception

when I am trying to show the maps on my fragment it is returning null pointer exception. I have added everything to the manifest each and every permission. I am attaching the fragment file its XML file and the log cat Chatffragment.java public…
0
votes
2 answers

onConnected() is not calling while i am sending data from Android wear to my Android phone

I am sending data from Android wear to Android phone To make connection i have used below code inside Wear's MainActivity but OnConnected() method is never executing which means Connection is not happening So i want to know what code exactly we…
Hiren Shah
  • 37
  • 11
0
votes
1 answer

GoogleApiClient for multiple Api's

I am using GooglePlayServices for my android application . I will be using Google+ Api & LocationServices Api. So from Google's documentation , I build the GoogleApiClient with addApi(Auth.GOOGLE_SIGN_IN_API), addApi(LocationServices.API). Every…
Sasank Sunkavalli
  • 3,864
  • 5
  • 31
  • 55