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
6
votes
3 answers

Infinite "Choose an account" loop when using Google Drive API

I'm trying to set up an Android app that can manipulate files stored on my personal Google Drive account using the guidelines at Google Drive REST API Overview. I've followed the sample code to allow a user to connect to the account, but the "Choose…
ChrisUK
  • 547
  • 8
  • 17
6
votes
1 answer

Google drive changes file name to Intent.EXTRA_SUBJECT when sharing a file via Intent.ACTION_SEND

I have the following code to share a file via Intent.ACTION_SEND. The last line shows a chooser so that the user can pick an appropriate app. When I chose the email everything is fine and the file is attached to the email. On the other hand, when I…
6
votes
2 answers

List all files in Drive

I want to list all files in Root folder of user's Drive using Google Drive API for Android. What I've tried: Use SCOPE_FILE and listChildren: mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Drive.API) …
Dima Kornilov
  • 2,003
  • 3
  • 16
  • 25
6
votes
1 answer

intent data is null onactivityresult after select account in google drive api in android

Below is my code: BaseDemoActivity: public abstract class BaseDemoActivity extends Activity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { private static final String TAG =…
Sagar Maiyad
  • 12,655
  • 9
  • 63
  • 99
6
votes
2 answers

How to integrate Google Drive with Picasso on Android?

I'm writing an app which stores images in Google Drive and I'd like to display a gallery of those (GridView). To be more performant (i.e. async) I'd like to integrate this with Picasso. But the Picasso.load(String) is just an alias to…
TWiStErRob
  • 44,762
  • 26
  • 170
  • 254
6
votes
0 answers

Google Drive Android Api ChangeEvent Listener workings

I am abusing this forum to solicit explanation (from the GDAA support team) of intended use of GDAA Notification Feature. The documentation here is quite sufficient to implement it, and the two related SO questions 22980497 and 22778501 touch on the…
seanpj
  • 6,735
  • 2
  • 33
  • 54
6
votes
1 answer

Android Google Drive SDK - how to show list of files in selected folder

I am struggling to get my code to work. I want my app (when a button is clicked) to show all the folders (and files) in the root folder of the drive. But it seems this is not possible since even though I have authorised the app using Ouath2, the…
6
votes
3 answers

Creating a folder inside a folder in google drive android

I want to integrate Google drive with my app I have registered my app in Google Developers Console. I got a sample from https://github.com/googledrive/android-demos .By this i am able to create a file,folder in Google drive's root folder but the…
6
votes
7 answers

Trash, Delete in new Google Drive Android API?

UPDATE (May 2015): the 'trash' functionality has been implemented in GDAA, making the question below irrelevant. ORIGINAL QUESTION: As I play with the new "Google Drive Android API" (GDAA), I am running into a few discrepancies I can't figure out.…
seanpj
  • 6,735
  • 2
  • 33
  • 54
5
votes
1 answer

How to find out if app has been disconnected from Google Drive?

I'm building an app where I store app data in the app-specific-folder on Google Drive. I've been able to setup everything related to file storage and retrieval. The problem I'm facing is regarding permissions. The user has an option to disconnect…
vepzfe
  • 4,217
  • 5
  • 26
  • 46
5
votes
2 answers

Google Drive REST API: java.lang.IllegalArgumentException: the name must not be empty: null

I'm developing an android application that makes use of Google Drive REST API. I just want to list all files in my drive. But when the method listDriveFiles() is called I get an error as java.lang.IllegalArgumentException: the name must not be…
Nipun
  • 990
  • 1
  • 16
  • 25
5
votes
1 answer

How to back up room database in Google Drive Android?

This may be dumb question but I couldn't find any solution on this. I need to know how to backup roomdatabase and retrieve it using Google Drive. Then what is the mime type for room database? Can anyone know how to do this? Let me post what I have…
M.Yogeshwaran
  • 1,419
  • 4
  • 22
  • 48
5
votes
2 answers

What is format of Google Drive's FileID ? I need to find out whether new File has been uploaded to my drive or not using API's

If FileID follows a particular format like new file has higher values or lower values I can keep track of the old values and find out whether I hace uploaded a new File in drive.
5
votes
2 answers

Android - Using the Google Drive API for android

For my App I need to have a List sync with Google Drive. I have already implemented the SignIn and had my Main_Activity implement…
Daniele
  • 4,163
  • 7
  • 44
  • 95
5
votes
2 answers

GoogleApiClient connection failed: ConnectionResult{statusCode=SIGN_IN_REQUIRED,

I am attempting to integrate Google Drive into my application with little success. Using the code from the Quick Start repository, I get the following error message every time I select a user account for log in: I/DriveDemo: GoogleApiClient…