google-drive-android-api

Google Drive Rest API: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

故事扮演 提交于 2019-12-24 18:06:12
问题 I'm migrating my app from deprecated Google Drive Android API to Drive Rest API. I implemented required behavior using new packages and everything works fine in emulator - app asks for access to user's Drive and getting it uploads files. When I started to test it on real device I get this error: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup I already had configured project in https://console.developers.google.com that worked fine with old library (it has required

Android authorize google drive api

元气小坏坏 提交于 2019-12-24 15:27:56
问题 I wanted the ability to upload and download from a users Google drive account. Uploading and download works fine, the problem is authorizing the account. So far I was using the android debug keystore for building the actual download and upload classes, but when I wanted to switch over to my own app it stopped working. I have enabled the Drive API in Google drive console, and have downloaded the client_secret.json file and put it in the assets folder. I do not know how to use it in

Google drive Android Api requested dimension image download

房东的猫 提交于 2019-12-24 10:38:40
问题 I'm trying to create a Google drive android app where I should be able to download resized images from Google drive. It's kind of a performance issue. Suppose I have uploaded an image of 1080px from my computer, now I wish to download that image to my Android phone which doesn't support 1080px image, so what happens is the image first gets downloaded then it's resized as per my device dimensions. But this is actually wastage of time and data. Why to download a 1080px image when I can only

How to get progress of a file being downloaded from google drive using REST API?

半城伤御伤魂 提交于 2019-12-24 07:14:09
问题 I'm using this method to download a file from Google Drive. My code: ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); driveService.files().export(remoteFiles[0].getId(),"text/plain").executeMediaAndDownloadTo(byteArrayOutputStream); FileOutputStream fileOutputStream= new FileOutputStream(new File(downloadsDirectory,remoteFiles[0].getName())); byteArrayOutputStream.writeTo(fileOutputStream); byteArrayOutputStream.flush(); byteArrayOutputStream.close();

Drive API for Android is broken, right?

我的梦境 提交于 2019-12-24 04:35:06
问题 As at August 2015, the 'Drive API for Android' is not functioning as (loosely)documented, is effectively broken. The main sore points are as follows: 1) An app sharing the same APP_ID and logged in with the same Google User is meant to be able to find and access the same files as Google indicate (e.g. appX on device1 creates a folder named 'blahblah' (where no 'blahblah' folder already exists in the User's Drive), appX on device2 should be able to find that folder and upload/download files

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

自古美人都是妖i 提交于 2019-12-23 10:02:28
问题 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 Listview. BUT - NO files were displayed. It only displays any sub folders from the selected folder. So it seems the new SDK only has SCOPE_FILE access, which I gather only allows the app to see files that it has created, or ones that the user selects

Is GET_ACCOUNTS permission still required for Google Drive REST API?

孤者浪人 提交于 2019-12-23 07:36:59
问题 Google has deprecated Google Drive Android API. We are migrating over to Google Drive REST API (v3). 2 years ago, we have experience in using Google Drive REST API (v2). We know that GET_ACCOUNTS permission is required, for GoogleAuthUtil.getToken() to work correctly - Google Drive API - the name must not be empty: null (But I had passed valid account name to GoogleAccountCredential) When we look at example of Google Drive REST API (v3) - https://github.com/gsuitedevs/android-samples/blob

get Google Drive Folder's ResourceID

◇◆丶佛笑我妖孽 提交于 2019-12-23 05:40:26
问题 I need to get the resourceId of a folder created inside my drive. Referred these docs first and second I am doing this : private void CreateFolderOnGoogleDrive() { Query query = new Query.Builder() .addFilter(Filters.and(Filters.eq( SearchableField.TITLE, "Folder"), Filters.eq(SearchableField.TRASHED, false))) .build(); Drive.DriveApi.query(mGoogleApiClient, query) .setResultCallback(new ResultCallback<DriveApi.MetadataBufferResult>() { @Override public void onResult(DriveApi

How to use the DriveApi.OnSyncFinishCallback (Android's Google Play Services)

无人久伴 提交于 2019-12-22 14:09:06
问题 The Android's developer documentation states that you can use a DriveApi.OnSyncFinishCallback to (presumably) handle when a synchronization between your local contet and your google drive account is completed. Normally such synchronization appens automatically, trasparently managed by Google Play Services, but apparently you can force a sync request with a call to: Drive.DriveApi.requestSync(mGoogleApiClient); I say "apparently" because the official documentation of this function is very poor

Sending Google Form response programmatically via Android

北战南征 提交于 2019-12-22 08:49:54
问题 I've developed a couple other apps that did nothing more than preference management, some custom lists, and LAN communications but that's about it. I'm building a employee attendance app that allows the employee to register when they clock in, lunch out, lunch in, and clock out, all via the app. Once all four have been entered, I want it to send it via a Google Form to a Google spreadsheet that I can then use to calculate there hours and have a long on all of their information. How would I go