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
0 answers

Uploading a file to Google Drive

I am developing an app which uses Google Drive to share files. The activity for Google Drive is launched by the code below. int REQUEST_ACCOUNT_PICKER = 1; credential =…
0
votes
2 answers

Photo Upload to Google Drive via Android app+cannot exit app until i press home button

Hi I want to develop an app that takes photo and uploads to Google Drive. I found the master(source code) from Github today which is by Google https://github.com/googledrive/android-quickstart This is very useful. But I found some problems that If i…
0
votes
1 answer

Optical Character Recognition using Google Drive API

I am working on an android application. I want to scan a receipt and read the characters, basically do optical character recognition. I read that google drive provides this functionality with their drive APIs & I wish to use Google drive API for…
user2622786
  • 779
  • 3
  • 9
  • 21
0
votes
1 answer

where is receipt collector sample app described in Google I/O 2014 video?

In the Google I/O 2014 video about the Drive Android API, Jen King describes a "receipt collector" sample app. Is it publicly available? (I didn't see it in the usual places: https://github.com/googledrive, or the SDK samples directory.)
gregS
  • 2,580
  • 5
  • 28
  • 33
0
votes
2 answers

Nullpointer in delete file from gdrive

First error come when I'm trying to get Resource id from Driveid. DriveFile dfile= Drive.DriveApi.getFile(mGoogleApiClient,DriveId.decodeFromString(driveId)); Log.e(TAG,"Driveid>>>>" + driveId); …
0
votes
1 answer

Porting files from RESTFul to Google Drive Android API(GDAA).

I'd like to solicit an expert advice on the following problem: I have thousands of files (jpeg images) created under different authorizations in Google Drive. I can see all of them using the RESTful API (DRIVE scope) and can easily collect the file…
seanpj
  • 6,735
  • 2
  • 33
  • 54
0
votes
1 answer

RESTful API list files with 'setFields()' modifier gives unexpected results

In an Android app, I'm trying to list files from the Drive, using the RESTful API. https://developers.google.com/drive/v2/reference/files/list I have 332 (number is just for example) files in the Google Drive and I run the following code snippet…
seanpj
  • 6,735
  • 2
  • 33
  • 54
0
votes
2 answers

Google Drive Android Api reset Play Services Authorization

When debugging a GDAA app, I need to re-test a "brand new account" situation. I.e. getting the dialog that asks user to allow the Drive access: "[YourApp] would like to: View and manage Google drive files that you have opened or created by this…
seanpj
  • 6,735
  • 2
  • 33
  • 54
0
votes
1 answer

Adding custom properties using the new Google Play Services drive api

I would like to add custom properties to files and folders from within my Android application. I cannot find any way to do this using the new Google Play Services Drive API. Is this missing from the API? Using the "old" Drive SDK I could do this in…
Peter
  • 10,910
  • 3
  • 35
  • 68
0
votes
1 answer

Upload multiple files to Google Drive

Up until now I've been using the upload a file to drive demo code. However, for my application I need to be able to upload multiple user selected files with one click of a button. My problem is that instead of upload each file to Drive it will…
Unem
  • 33
  • 1
  • 7
0
votes
1 answer

Unable to upload file on google drive

I'm uploading file on google drive using drive api in my android application.I have created api project using package name & SHA1 key. But getting below error/warning- static final int REQUEST_AUTHORIZATION = 2; Context context; String…
yuva ツ
  • 3,707
  • 9
  • 50
  • 78
0
votes
1 answer

Android upload/download text files from sdcard to Google Drive with Google Play Services

I want to implement Google Drive upload/download txt file to my Android app using Google Play Services, but I don't find a right way to do it. In dropbox is very easy: File file = new File("working-draft.txt"); FileInputStream inputStream = new…
0
votes
1 answer

How to upload a file in to Google Drive from Android App(GoogleDrive API integration)

I would like to upload file into google drive from android app.I got the example from this link for uploading a photo into Google Drive from camera.I didn't get any better solution for uploading a file(.txt,.pdf,.doc).so anyone please suggest a…
Jamal
  • 976
  • 2
  • 14
  • 39
0
votes
0 answers

iOS Google Drive API load all GTLDriveFile from specified folder

I just started using Google Drive API. I walked throughout installation and setup guide and right now I can use this beautiful service on my iOS application. My goal is: load all files for specified directory. I have found example how to get load…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
0
votes
0 answers

Cannot get acces to file in google drive (Id must be provided)

I am making code based on android google drive demo. I think i've copied all setings propeerly as i can create files and folder and make queries; However when I am tring doenload file I recieve error saing that Id must be provided. How my code…
Yarh
  • 4,459
  • 5
  • 45
  • 95