Questions tagged [android-googleapiclient]
169 questions
1
vote
2 answers
how to disconnect from googleapiclient in android
I am doing simple google login and logout using API. but when i logout using below code, sometimes googleapiclient not disconnect. and because of that when i am going for login, it will automatic login to my previous account rather that asking for…

Sagar Maiyad
- 12,655
- 9
- 63
- 99
0
votes
0 answers
Using GoogleApi instead of GoogleApiClient
I am trying to transition from GoogleApiClient to GoogleApi. This guide is supposed to walk you through how to transition from GoogleApiClient to GoogleApi: https://android-developers.googleblog.com/2017/11/moving-past-googleapiclient_21.html.…
0
votes
1 answer
Select files from google drive and share file in android
I am using google drive api. After selecting files in onActivityResult i am getting uri of drive selected file.
how to get file or driveId using uri. or any other options to select file share in chat window.

priyanka More
- 25
- 4
0
votes
1 answer
How to upload and update same named file to google drive in Flutter
Let me give an example first.
Say, I upload a file to google drive with the name of 'MyFile.txt'. After that, when the 'MyFile.txt' is updated in my device I want to upload this file again. But when I upload the file again, a new file is created on…

Santo Shakil
- 981
- 2
- 13
- 27
0
votes
1 answer
Is there a startSearch() function equivalent that can be used in fragments
I am developing a map in a fragment using mapView. The fragment consists of a mapView and a searchBar(mancj.materialsearchbar). I tried using startSearch() in the OnSearchActionListener() but it isnt possible unlike in activities were it is. Any…
0
votes
0 answers
Android when user manually removes a Google account from the device
After a user has signed into a Google account and then manually removes that Google account via settings 'Accounts' a call to getLastSignedInAccount returns a GoogleSignInAccount instead of null and a call to vGoogleSignIn.hasPermissions` returns…
user11162572
0
votes
2 answers
Getting issue while retrieve location with different location request mode
For retrieve location i have used GoogleAPIClient with FusedLocationProvider API.
These functions are in onCreate() method.
createLocationRequest();
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(LocationServices.API)
…

droidster.me
- 558
- 8
- 16
0
votes
2 answers
How do I open google maps app on tapping an address?
I have an address param within my app say " 921 Beverly Hills, california, CA- 09001"
Upon tapping this I want google maps to open and show annotation for this exact address. How do I do that?
Any clue?
user2386226
0
votes
1 answer
Google Calendar API & Alarm Manager Error
I get the free 1 hour time slots from the Google calendar API using this code.
MainActivity.java:
private List getDataFromApi() throws IOException {
LocalDateTime now = LocalDateTime.now();
int year = now.getYear();
…

Researcher1996
- 23
- 3
0
votes
1 answer
Using Google Client library in Android
I've added some code that fetches a user profile information from the People Api after he signed in (using GoogleSignInOptions). This is the code:
private void getProfileData(final Context context, GoogleSignInAccount account, final…

AsafK
- 2,425
- 3
- 32
- 38
0
votes
2 answers
"Could not find any version that matches com.google.android.gms:play-services-basement:[15.0.1,16.0.0)"
My project was working all right but today, when I tried to rebuild it, started showing above error. I checked the previous answers to the similar questions but couldn't resolve the issue. This is the build.gradle(Module: app) file.
apply plugin:…

Ayushh Srivastava
- 49
- 4
0
votes
1 answer
How to pass an GoogleApiClient objet to another activity
In my loginactivity, I have an google Sign In button to LogIn.
I checked and works fine.
I had anothers buttons to log out and Revoke and worked fine too.
This is my code of the loggin screen.
import android.app.ProgressDialog;
import…
0
votes
0 answers
Show User Location on Map Failed with API Client Connection Error
I want to show the user's location on a map whenever a toggle button is pressed. I have written the code like below and it works only to show the map but not the user's location and sometimes throws error like:
java.lang.IllegalStateException:…

Andromeda
- 230
- 1
- 7
- 22
0
votes
0 answers
if google play services blocked in some countries does google services api will work on android devices
if google play services blocked in some countries does google services api will work on android devices
in cases that the device already have play service already installed on it
and if the google play service not installed
0
votes
0 answers
Android google plus login integration failed
I am new to Stack overflow and android development.In my app,adding google plus and facebook login integration.I have problem during google plus login.What i am trying is.........
GooglePlusSignInHelper.java
public class GooglePlusSignInHelper {
…