Questions tagged [android-googleapiclient]
169 questions
1
vote
2 answers
Get last known location with Google Service API
I am learning getting location with Google Service API. But I am getting confused since I saw people use two ways to get location:
1.
FusedLocationProviderApi fusedLocationProviderApi = LocationServices.FusedLocationApi;
Location lastKnownLocation =…

Leem.fin
- 40,781
- 83
- 202
- 354
1
vote
1 answer
java.lang.IllegalStateException: Must not set scopes in GoogleApiClient.Builder when using Auth.GOOGLE_SIGN_IN_API
I am using drive api with authentication api. I need to login to google account first then upload files to drive. Problem is when i use only drive api without authentication is says unable to sign in. I signed in first using
GoogleSignInOptions gso…

Ali Subhan Kazmi
- 25
- 6
1
vote
2 answers
Wait for onConnected call, to get location
So, I have custom Location Service class, from which I want to get last known location. It's possible, that I can call getLastKnownLocation() before GoogleApiClient is connected, so I have to wait for it and then call getLastKnownLocation(), but I…

Panczur
- 633
- 1
- 9
- 26
1
vote
1 answer
requestLocationUpdates five times started from IntentService
My control flow is in an IntentService (triggered by a GcmListenerService) and should now get the location of the user. As
LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient)
might return null, I should request some location…

user3105453
- 1,881
- 5
- 32
- 55
1
vote
1 answer
GoogleAPIClient on recyclerview adapter
This app have a fragment that does CRUD operations on a single table database.
It is done on an class that draws a FAB and a recyclerview.
The FAB open an alertDialog with a insert form.
The recyclerview shows the database rows as cardviews. Each…

Rene Freak
- 111
- 5
1
vote
1 answer
Listen for Google Calendar resource changes without server
I need to somehow be notified in realtime when a Calendar resource (like a room) has a change made to it (new event, event deleted, event modified, etc.) Now, I know the Google Calendar API allows registration of notifications…

Mark Herscher
- 1,761
- 2
- 19
- 32
1
vote
0 answers
Cannot resolve symbols AppCompatActivity and GoogleApiClient
I am new to developing on Android Studio, my app was running fine until the studio exited abruptly after that the project cannot find any of the libraries imported (in asterisks) like Uri, AppCompatActivity etc to my AppCompatActivity class (I am…

Samra
- 1,815
- 4
- 35
- 71
1
vote
0 answers
google map android - factors affecting battery use with location tracking
I have a service which tracks the user's location all the time (as long as its running) and puts the data into a SQL table, and when the app is in the foreground -> the service also sends updates to the UI with the location and the map and location…

Ofek Agmon
- 5,040
- 14
- 57
- 101
1
vote
1 answer
Google Drive Android API and Cross Client Authorization
I use Google Drive Android API for letting users upload files from Google Drive on their Android device to my servers.
I would now like to change this setup to allow my servers to have direct access to the users Google Drive, using Cross Client…

jim
- 140
- 2
- 8
1
vote
2 answers
Why use GoogleAPIClient to request location updates?
I noticed that it's possible to request location updates in (at least) two different ways.
Using GoogleAPIClient:
// Callback for when the GoogleAPIClient is connected
@Override
public void onConnected(Bundle connectionHint) {
…

Magnus
- 17,157
- 19
- 104
- 189
1
vote
0 answers
Emulator reboots when calling setMyLocationEnabled(true)
I have an app that displays the users location on a map. It all works fine on API16, 19, 21, 23 and API10 on a physical Nexus One, but when I run it on a Genymotion API10 emulator, the emulator reboots when I…

Magnus
- 17,157
- 19
- 104
- 189
1
vote
1 answer
Can't connect to GoogleAPIClient LocationServices.API
I can't seem to make GoogleApiClient to work on my project. I'm using LocationServices, OnConnected is not firing even though i have the client.connect() called in the onStart method.
I've searched stackoverflow and tried solutions given but i still…

redanesc
- 325
- 4
- 14
1
vote
0 answers
at run time application responses a null point exception but debug time it works properly
I am a beginner to android development and i am building an application related to map creating the route. the lat long data are taken from the php API. the problem is when i debug the program it works perfectly fine but when i run the application…

dhananjay singh
- 13
- 5
1
vote
2 answers
Android Google API Debug App working but not signed App
My Android App seems to be working fine by using code given from: google api webpage
when running in debug mode but once I generated a signed apk, and uploaded the app to the app store, the app will not log in properly. Is there any way of fixing…

Vasanth Sadhasivan
- 109
- 1
- 10
1
vote
3 answers
How to Use google places api in android with restrict particular place?
Hey Guys i basically i want to create one application that have Autocomplete TextView and show place according user search i just restrict user show only india's city name not other.
can any one know ?

Sanjay Bhalani
- 2,424
- 18
- 44