Questions tagged [android-googleapiclient]
169 questions
1
vote
1 answer
How to remove api and scope from GoogleApiClient in Android?
In my app some Google APIs are optional. (In this case the Games API.)
In my settings activity, the user can choose to not signin into Google Games. There I call
Games.signOut(mGoogleApiClient);
googleApiClient.disconnect();
googleApiClient =…

friedger
- 645
- 7
- 21
1
vote
0 answers
Android: CredentialPickerActivity giving me nullpointerexception
I'm getting a null pointer exception if I click on the credentials window when it just starts to appear. My code:
if (googleApiClient == null) {
googleApiClient = new GoogleApiClient.Builder(getActivity())
…

Jon
- 7,941
- 9
- 53
- 105
1
vote
1 answer
libGDX: GoogleApiClient disconnected after Gdx.net.openURI
if I called Gdx.net.openURI("") then I return into the game, the GoogleApiClient disconnected. Why??
if (event.getTarget().getName().equals("facebook")) {
Gdx.net.openURI("https://www.facebook.com/*****");
}

iibrahimbakr
- 1,116
- 1
- 13
- 32
1
vote
2 answers
Android: Google Sign In - credential token list is always empty
I'm implementing the google smart lock sign in to automatically log a user in without input, however I'm running into the problem that the token list (getIdTokens) returned in the credential object token list is always empty even after a…

Jon
- 7,941
- 9
- 53
- 105
1
vote
0 answers
use location dialog android
I have to show Location Dialog on screen after login , i am try by folllowing code
but getting this issue
I am calling this method in onCreate() , but showing error for the at PendingResult Line.
The type BroadcastReceiver.PendingResult is not…

Harshad07
- 608
- 7
- 23
1
vote
2 answers
Error in AutoText when type a word and generate url is not valid
Here is my code for review I am not able to resolve this error. My generated value is append with hexadecimal number, normal , null ....
Map Api Url 0x22cd051c NORMAL null
Here is image of exception :
GetDirectionActivity.java
public class…
user5201494
1
vote
0 answers
Used volley jar for access google place API
I got error when passing DataRequest along with URL – 3 more strings are generated – 0x22cd051c NORMAL null ----- hexadecimal, normal and null I'm getting why they are appended to URL???
datarequest.java
public DataRequest(int method, String url,…
user5201494
1
vote
0 answers
Power impact of setInterval() in Location Request with GoogleApiClient
I am trying to understand what is the battery savings we get by increasing setInterval() duration when constructing Location Request. I tried two scenarios
Location Request with setInterval() with 60000millis
Location Request with setInterval() as…

reku
- 753
- 9
- 17
1
vote
1 answer
Determine if a node returned by Wearable.CapabilityApi.getCapability is connected using GoogleApiClient on Android Wear
I'm experimenting a bit with Android Wear (streaming data from the watch to the phone) and I was looking into the CapabilityApi.
According to the documentation for Wearable.CapabilityApi.getCapability there is no guarantee that this call will only…

JohanShogun
- 2,956
- 21
- 30
1
vote
2 answers
Android: Error calling GoogleApiClient.connect()
When i call method mGoogleApiClient.connect() the app crashes.
the following code is copied from www.developers.google.com
i want to implement Google Sign In functionality, but unable to do so.
i also have edited the build.gradle file. in my Last…

Usman
- 1,116
- 11
- 13
1
vote
1 answer
Google map hang in slow speed internet connection, Android
In one of my activity I am showing google map in fragment. It's working fine with 3g or high speed internet connection. But in 2g or very slow internet connection it's hang my mobile, And after some time I get 'not responding' message.
Is there any…

neooo
- 241
- 1
- 4
- 11
1
vote
2 answers
how to get the address of center point of GoogleMap v2 in android?
I following this tutorial to get position of center point of v2 GoogleMap .now I want to get the address of the point using reverse geocoding ....
I am using Following code to get LatLang of center point when button is clicked :
@Override
public…

Santosh Bhandary
- 359
- 2
- 3
- 19
1
vote
0 answers
Location updates using google fused API client don't work
I am trying to make a service which would track the device's movement (get location updates) and according to the device's current location will start an alarm. At them moment when i test the app on the emulator at the computer it does get location…

user3542927
- 51
- 1
- 3
- 9
1
vote
1 answer
Google Places AutoComplete + Android Fragment
I am a beginner on Android development and I came into a problem which I hope you can help me to solve. I'll keep it simple...i am trying to use Google Places autocompletion in a fragment...the app stops right from the beginning. My guess is the…

BlueHatCoder
- 87
- 1
- 2
- 7
1
vote
1 answer
SHA1 for Google apis
Im a bit confused about how to obtain the SHA1 for my app.
I saw all the guides which suggest:
keytool -list -v -keystore C:\Users\user\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
But when i sign my app for…

Michael A
- 5,770
- 16
- 75
- 127