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
5
votes
2 answers

Upload photo to drive without compression

I want to upload a photo from my camera directly into a drive folder: OutputStream outputStream = result.getDriveContents().getOutputStream(); ByteArrayOutputStream bitmapStream = new ByteArrayOutputStream(); /* image is my…
5
votes
1 answer

How to save data using Google sign-in

I've just implemented Google sign-in into my app using the course on Udacity, the developer docs, and a sample on GitHub as resources. The reason I chose to add sign-in into my app is so that the user could access their data on any devices where…
5
votes
0 answers

How to restore app data from Google Drive Android SDK without user interaction like WhatsApp

I am working on an Android App which requires saving certain key-value data into Cloud. So when the user installs my app, I could restore the key-value data from Cloud. I have done a lot of research including Android BackupAgent API which is not…
Tony Thompson
  • 410
  • 5
  • 13
5
votes
5 answers

GoogleApiClient onConnectionFailed with statusCode=SIGN_IN_REQUIRED

I'm trying to connect my app to Google play service to access Google Drive but It showing me connection failed with statusCode SIGN_IN_REQUIRED. But it seems to behave like that just 3 days ago. I am also checked developer console of google. They…
5
votes
2 answers

How to get the direct download link of a file by google drive api v3 in java

How to get the direct download link of a file by google drive api v3 in java ? Hi all, I've worked with Google Drive Api in Android for a week, I used both Android Drive SDK and Drive Rest Api for java but I can't find the way how to how to get the…
Hưng
  • 88
  • 1
  • 9
5
votes
1 answer

Android Google Play / Drive Api

Hi I'm using the Google Drive Api to store a database using the AppDataFolder facility. I have a test app running successfully on one device. I am able to upload/update/delete/download the database file and reintegrate it into the program with no…
Mark
  • 9,604
  • 5
  • 36
  • 64
5
votes
1 answer

How to save app data on Google Drive?

I want to use Google Drive as server to store app data. So, I have written all the data to a file and then upload that file to Drive. Code: try { // outputStream.write(bitmapStream.toByteArray()); …
megha
  • 301
  • 5
  • 18
5
votes
1 answer

User disconnecting app in Drive causes loss of data under FILE scope

I've run into this issue a few times, but could never point my finger on it, attributing it to GDAA's latency, my buggy code, etc... I finally managed to come up with a scenario where I can safely reproduce it, so I would like to ask people who…
seanpj
  • 6,735
  • 2
  • 33
  • 54
5
votes
5 answers

Google Drive Android API ConnectionResult Error

I'm making an app and I'm integrating the Google Drive Android API into it. I have a main activity then a fragment that opens that leads to google drive. However, when I try to sign in (it doesn't matter what gmail account, I've tried existing ones,…
5
votes
1 answer

Google Drive scopes deprecated?

I'm writing an app that would play media straight off Google Drive. Google docs mention https://www.googleapis.com/auth/drive.readonly scope (see here: https://developers.google.com/drive/web/scopes) that seems exactly to be what I need. Yet, it…
ssuukk
  • 8,200
  • 7
  • 35
  • 47
5
votes
3 answers

Downloading Google Sheets spreadsheets from Google Drive on Android

I am working on an Android app that uses the gdata-java-client to download documents for display only. So far I have an application that authenticates with the services and displays a list of user documents. When the user selects a document another…
5
votes
1 answer

Android - access Google Drive appdata folder from another device, but same app

My app is setup to allow backups to be saved to a Google Drive appdata folder. It all works perfectly well on the same device. When I make a backup, delete the app's data, then restore it all works. However, when I try to backup on one device, then…
5
votes
2 answers

Stuck in Connection Failed loop with GoogleApiClient

I am trying to implement the com.google.android.gms.common.api.GoogleApiClient in my project. The problem is that every time I try to connect, I get the call back to the onConnectionFailed listener with a pending intent that I execute. On a clean…
NameSpace
  • 10,009
  • 3
  • 39
  • 40
5
votes
3 answers

After disconnecting app Google Drive Android API still returns successful results, but doesn't upload file

I'm using Google Drive Android API (as part of Google Play Services) to upload files to cloud. To connect client I'm using following code (simplified): apiClient = new GoogleApiClient.Builder(context) .addApi(Drive.API) …
Dmitry Zaytsev
  • 23,650
  • 14
  • 92
  • 146
5
votes
1 answer

Google Drive API for Android - Only Drive.SCOPE_FILE access, need read only

So I'm a bit of a novice and I wish to list all the files and folders in Google Drive. I had downloaded the new SDK, got my app all authorised etc. I used the samples to pick a folder with an opener, and then display the contents in the…
user3437721
  • 2,227
  • 4
  • 31
  • 61