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
58
votes
1 answer

How to avoid from always loading cached app data from Google Drive

Currently, I'm using Google Drive Android API, to store my Android app data, to Google Drive App Folder. This is what I'm doing when saving my application data Generate a checksum for the current local zip file. Search in Google Drive App Folder,…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
31
votes
4 answers

Can someone provide an up-to-date Android guide for Google Drive REST API v3?

Myself and many others have been struggling with setting up the Google Drive REST API v3 to work with Android apps. This mainly stems from the fact that the official Google documentation is missing a proper quick start guide for Android and we are…
ChrisUK
  • 547
  • 8
  • 17
30
votes
3 answers

Dependency ignored because of conflict Android studio

I'm trying to add the following dependency but it is ignore. I can't understand how to resolve it please help me Thank you. Dependency compile 'com.google.apis:google-api-services-drive:v2-rev170-1.20.0' Waring for ignoring dependency …
Asim Habib
  • 381
  • 1
  • 4
  • 12
21
votes
1 answer

Android Google drive App data folder return empty when I use queryChildren

I'm using the new Google play service drive api to implement backup and restore data with App folder in my android application.I followed the intructions from the google drive developer guides.I can backup and restore data successfully when I only…
robert
  • 540
  • 2
  • 12
18
votes
3 answers

com.google.android.gms.common.api.ApiException: 17: API: Drive.API_CONNECTIONLESS is not available on this device

Here is the story. I had integrated Google Drive Android SDK (8.1.0) into my app (AnyCopy) around three years ago. And I followed the tutorial to set up properly including adding credentials and api key. Everything worked okay. I could backup and…
18
votes
1 answer

User Data backup to Google Drive under "Backup" category

I was doing some R&D regarding backing up user data to Drive. User data meaning dbs or their own created content using the app. I want this to basically persist the data in case user changes their device or drops it in the ocean or whatever. I…
Mangesh
  • 5,491
  • 5
  • 48
  • 71
17
votes
1 answer

File Picker for Google Drive Rest API for Android

While the Google Drive Android API, an API separate from the Google Drive Rest API, does contain a file picker, the Google Drive Android API is not integrated with all the features of the Google Drive Rest API, such as exporting Google Docs files to…
Daniel
  • 1,599
  • 1
  • 16
  • 19
17
votes
4 answers

Google Drive Android API - Check if folder exists

I'm trying to figure out how to check if a folder exists in Google Drive using the new Google Drive Android API I've tried the following, thinking that it would either crash or return null if the folder is not found, but it doesn't do that (just as…
Jakob Harteg
  • 9,587
  • 15
  • 56
  • 78
16
votes
3 answers

Get Google Sheets Last Edit date using Sheets API v4 (Java)

I'm using the Google Sheets API v4 in Android. https://developers.google.com/sheets/api/quickstart/android I need to know when the last modification to the sheet was made (including by user); I need this guy: I'd like to do something like this: …
16
votes
2 answers

Using Google Drive to backup and restore SQLite Database

I've managed to create a backup of my database on an SD card and restore from there but realized that the purpose of my backup is to ensure the safety of the data and in this case if the physical device itself is damaged, lost, or spontaneously…
Cytus
  • 271
  • 1
  • 2
  • 10
16
votes
3 answers

Multiple instances of Google API Client?

I have activity A that instantiates GoogleApiClient, connects and starts processing in AsyncTask that may take seconds or minutes. Meanwhile, user triggers activity B that instantiates it's own GoogleApiClient with a connection. The question is: Can…
seanpj
  • 6,735
  • 2
  • 33
  • 54
15
votes
3 answers

get path from Google Drive URI

I'm using Android file selection and selecting files from app storage (images, videos, documents). I have an function "getPath" . Im getting path from uri. I have no problem with gallery images or download documents. But when i select a file from…
Gökhan Çokkeçeci
  • 1,388
  • 3
  • 16
  • 37
13
votes
2 answers

Sample Projects about the backup of Sqlite file and photos on Google Drive programmatically in Android

I am writting an app with an instant messenger function. Users would write text or share images in the IM function. The text data and file name of images are stored in the sqlite file while the images are stored in the device. Since my server will…
13
votes
3 answers

Google Drive integration using current activity

Is it possible to integrate with Google Drive without creating ones own activity, instead just using the current activity for the application without polluting it with Google Drive related code? I have a background "service" (not an Android service…
me--
  • 1,978
  • 1
  • 22
  • 42
12
votes
0 answers

Google Drive upload error : "I/O error during system call, Software caused connection abort"

I have developed an Android application using which the user can upload large files (~1 to 2 GB in size) to his/her Google Drive account. I am using the Google Drive Rest API for Android. Sometimes, the upload operation fails with following…
1
2 3
56 57