Questions tagged [google-drive-android-api]

[DEPRICATED DO NOT USE]The Drive Android API is a native API that conforms to standard Android best practices and coding conventions. Note that this API was deprecated by Google in December 2018 and will be turned off completely in December 2019.


Note that this API was deprecated by Google in December 2018 and will be turned off completely in December 2019.


About

The Drive Android API is a native API that conforms to standard Android best practices and coding conventions. It is an improvement over the generated client API, simplifying many common tasks associated with using the Drive service on mobile devices. The API automatically handles previously complex tasks such as offline access and syncing files. This allows you to read and write files as if Drive were a local file system.

Links

Official Documentation

API Reference

Issue Tracker

Google Developers Introduction Post

855 questions
8
votes
5 answers

Uploading video to Google Drive programmatically (Android API)

I have followed the Drive API guide (https://developer.android.com/google/play-services/drive.html) and my app now uploads photos smoothly, but I am now trying to upload videos (mp4) without success. Does anyone know how to achieve this? The video…
Patrick Forsyth
  • 83
  • 1
  • 1
  • 5
8
votes
4 answers

Google Drive API - Android - How to obtain a drive file id?

I'm trying to develop an android app that can read a xml file stored in my google drive folder, the idea at first is trying to open the file and handle the content. I've read the Google Drive API docs for android and i reached a point that I'm lost,…
8
votes
1 answer

Google Drive Android API tutorial issue

Following this tutorial, I pasted this code into my Main Activity: @Override public void onConnectionFailed(ConnectionResult connectionResult) { if (connectionResult.hasResolution()) { try { …
woojoo666
  • 7,801
  • 7
  • 45
  • 57
7
votes
0 answers

Is it possible to implement a Google Drive folder picker dialog with Storage Access Framework?

My app asks users to select a Google Drive folder so that it can save files to the selected folder later. Until now it used the folder picker UI of the Google Drive Android API, but now that is deprecated and shut down. The migration note suggests…
7
votes
3 answers

Play Store app with Google drive sdk is always showing 'Choose account' popup

I have integrated the Google drive sdk with the app and is working fine with the debug and signed build. But, when the app is installed from Play Store it is always showing the Account Chooser popup. Seems like the authentication is getting failed…
7
votes
2 answers

gapi.auth2.getAuthInstance().isSignedIn.listen() doesn't work

I am using OAuth2.0 in google drive api authentication. I have an isSignedIn listener that has afterSignIn as a callback. My problem: after signing in, afterSignIn() function is not fired. Does someone know how to fix this? function…
phuwin
  • 3,130
  • 4
  • 26
  • 49
7
votes
0 answers

Google drive API for Document Scanning

I want to include functionality to scan image documents into my application. Is it possible use the new Google Drive API to scan image documents?
Android Geek
  • 598
  • 1
  • 5
  • 20
7
votes
1 answer

Backup/Restore SQLlite Database to Google Drive app folder

I am trying to incorporate the functionality to backup and restore the app database to google drives app folder (NOT visible to the user). I went through the basic setup guide setup guide given for android and can get the user to authorize the app…
Paritosh
  • 367
  • 5
  • 20
7
votes
1 answer

LogIn to google drive on android without adding the google account to the device

I develop an android application that needs to allow read/write access to user's google drive. In addition, it is supposed to run on public devices (meaning that many people might use same device to access their google drive account). In such…
7
votes
1 answer

Google Drive Android API - Sharing files in App folder?

I want to create an app that stores files "safely" from the user, and the App Folder in the Google Drive API seems perfect for this. But I also want people using the app to be able to share the app-specific files (and stay in sync) with each other.…
Sunckist
  • 81
  • 6
7
votes
2 answers

Unpredictable result of DriveId.getResourceId() in Google Drive Android API

The issue is that the 'resourceID' from 'DriveId.getResourceId()' is not available (returns NULL) on newly created files (product of 'DriveFolder.createFile(GAC, meta, cont)'). If the file is retrieved by a regular list or query procedure, the…
seanpj
  • 6,735
  • 2
  • 33
  • 54
7
votes
2 answers

Get Account Name / Email from Google Drive Android API

I'm using the new Google Drive Android API and I can connect, and do all that it will allow me to do, but in order to use the SpreadsheetService, I need to extract the accountName/email from the signed in user. How do I do that? Here's the code…
LimaNightHawk
  • 6,613
  • 3
  • 41
  • 60
7
votes
2 answers

How to select files from google drive in android?

Is there any way to start file picker for google drive in android app - to do something similar to this http://googleappsdeveloper.blogspot.com/2012/08/allowing-user-to-select-google-drive.html. I need to allow user to select files from google…
6
votes
1 answer

Shared drive not found while using GDrive.files.list({))

I want to get list of files from shared drive, by using react-native-google-drive-api-wrapper library, but i am getting an errorr. here my code. GoogleSignin.configure({ scopes: [ 'https://www.googleapis.com/auth/drive', …
Ahmed
  • 142
  • 2
  • 11
6
votes
1 answer

Google Drive Auth Always returns 0

I am using the code as shown in this https://developers.google.com/drive/android/auth#connecting_and_authorizing_the_google_drive_android_api In my app I click to connect to Drive, but it results in this line being executed …
1 2
3
56 57