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

Cannot create spreadsheet in google drive

I tried to create a spreadsheet in Android. It sent a success message but it wasn't created. I used the following code to create it: MetadataChangeSet metadataChangeSet = new…
0
votes
1 answer

Google Drive Android API - Is there any way to open a Drive file through a link?

I know that you can open files that are either within the user's Drive or through a dialog - but is there anyway to open files that are shared to those who have the link? I'm trying to implement functionality where form submission in an app can be…
0
votes
2 answers

com.google.android.gms.drive.DriveApi.ContentsResult cannot be resolved... But everything else can be?

I'm getting this error: com.google.android.gms.drive.DriveApi.ContentsResult cannot be resolved But just with that one import. These all work: import com.google.android.gms.common.ConnectionResult; import…
0
votes
1 answer

I can't get folders that it is created by other device in New Android Google Drive

I have used new google drive android api in my project. By the way, I can get only files and folder that i have created. If I have created the folder and files in other device (or drive.google.com site self), I can't the files and folders. Please…
0
votes
1 answer

Android app and Drive integration problems

I'm trying to integrate Google Drive into my app so that I can upload a text file that the app writes during runtime. To this end, I'm working through Google example code and followed the setup steps specified on the page. The problem is that…
Yassie
  • 316
  • 1
  • 4
  • 14
0
votes
2 answers

How to identify file vs folder from DriveId

When working with Google Drive Android API (GDAA), I often need to retrieve a list of parents of a GDAA object identified by DriveId. But I could not find a direct method that would deliver the list of parents. The only way to get it is to turn the…
seanpj
  • 6,735
  • 2
  • 33
  • 54
0
votes
1 answer

Upload file to Googledrive programmatically using Android API

Once I logged in gdrive I tried to upload csv file programmatically. But it throws error in service. public class Gdriveactivity extends Activity implements ConnectionCallbacks, OnConnectionFailedListener { private static final String TAG =…
Karthick M
  • 769
  • 2
  • 11
  • 29
0
votes
1 answer

I am unable to download contents of a file using google drive

I am attempting to download a google doc file with google drive but I keep getting the status message: Status{statusCode=No content is available for this file., resolution=null}. This problem persists for any file I attempt to download. The files…
0
votes
1 answer

What could be the cause for remote data corruption when using the google drive android API?

I have createa a small app that reads and writes files using the Google Drive Android API. Locally on one client, everything works fine: I store files using the Drive API, and read them back on the next start without any issues ever. However, when…
Stefan Haustein
  • 18,427
  • 3
  • 36
  • 51
0
votes
1 answer

Google Drive Api implementation from SherlockFragmentActivity action bar

I have the following scenario in my app - SherlockFragmentActivity hosting a ViewPager containing 3 individual fragments. There is a sherlockactionbar on top, with backup and restore options, which should basically backup the app data to google…
0
votes
1 answer

GoogleApiClient Calling connect() while still connected, missing disconnect()

1) Calling connect() while still connected, missing disconnect().This error occurs in following scenario, Switch off Wifi and launch my App First time. I try to connect GoogleAPiClient onCreate() of Activity Got Error dialog, Network Error:A data…
Ramprasad
  • 7,981
  • 20
  • 74
  • 135
0
votes
1 answer

Android - Google Drive API file never syncs

I have a weird bug I'm hoping someone can help me with. I am using the Google Drive app folder to backup some data from my app. It creates the file and writes my data without and issue, I can sign grab the file from drive at any time and it works…
crazyfool
  • 1,433
  • 4
  • 22
  • 38
0
votes
1 answer

How to handle Internet connectivity lost after onConnected in Google drive android api

I am invoking the google drive api client's connect() method to start a drive communication from my android app. Now for testing purpose, I put in a breakpoint inside the onConnected method and then after the breakpoint was hit, I intentionally…
omkar.ghaisas
  • 235
  • 5
  • 19
0
votes
1 answer

Android Google Drive EXISTING_FOLDER_ID,EXISTING_FILE_ID

In BaseDemoActivity.java from Google Drive Demo app https://github.com/googledrive/android-demos/blob/master/src/com/google/android/gms/drive/sample/demo/BaseDemoActivity.java what i have replace in…
Nasrudeen
  • 425
  • 5
  • 18
0
votes
2 answers

Uploading and downloading multiple files back to back - Android Google Drive api

In my app, I need to upload multiple files (1 sqlite db file and multiple image files) for backup purpose to user's google drive. I am using android google drive api, but not sure, how to do back to back file uploads and then later on downloads like…