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

Google Drive Api v3 and proguard

After shrinking my release apk with proguard files().list() returns no files (in debug mode it does). I used the quickstart sample for login. There are no error messages. Login seems to be successful. Here is my proguard.cfg: -optimizationpasses…
11
votes
1 answer

How to download google drive file in android

I wanted to download file from google drive. For this I have implemented in Google Drive SDk and used the following method. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode)…
Amit kumar
  • 1,585
  • 2
  • 16
  • 27
11
votes
5 answers

How do I switch accounts under the NEW Google Drive Android API

My authorization flow in the new Google Drive Android API is as follows: Menu: SELECT ACCOUNT connect(); onConnectionFailed() result.startResolutionForResult() invokes AccountSelectDialog / DriveAuthorization onConnected() do your stuff Works…
seanpj
  • 6,735
  • 2
  • 33
  • 54
10
votes
1 answer

Is GET_ACCOUNTS permission still required for Google Drive REST API?

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()…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
10
votes
8 answers

How can I enforce GoogleApiClient to prompt account chooser UI each time I call connect?

Whenever I run the code for the very first time at my 1st app launched cycle GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(context) .addApi(Drive.API) .addScope(Drive.SCOPE_APPFOLDER) // required for App Folder sample …
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
10
votes
1 answer

How to send multiple images those are present in folder to the google drive in android programmatically?

I want to send multiple images those are present in my internal storage and when i selects that folder i want upload that folder into google drive. i have tried this google drive api for android…
Hanuman
  • 958
  • 13
  • 35
9
votes
0 answers

How to Backup app data similar to whatsapp

Hi I am trying to implement backup funcationality similar to whatsapp, but when I come across that after reverse engineering whatsapp manifest code. Here are the observations, android:allowBackup="false" which means Its not taking help of default…
9
votes
1 answer

Accessing public Google Drive folder from Android app without authenticating

I'd like for my app to be able to read from a pre-defined shared public Google Drive folder without the user having to log in or choose a Google account. Background / Environment Using my desktop browser, I have created a public folder on my Google…
8
votes
1 answer

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

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…
4ybaka
  • 2,954
  • 4
  • 16
  • 21
8
votes
1 answer

Google Drive Android API returns success even after removing the app

I'm using the new Google Drive Android API. This is the demo code that I've copied from Google's android-samples repo. GoogleSignInAccount signInAccount = GoogleSignIn.getLastSignedInAccount(this); if (signInAccount != null &&…
8
votes
1 answer

Store data into google drive's backup tab instead of drive folders

I need to implement same thing like whatsapp storing all chat history to google drive on clicking on backup button in app. And same restore it in new device as required. I have look for below references for implementing this, but some how I was not…
8
votes
4 answers

Error getGoogleAppId failed with status: 10 Android KitKat - GCM and Google Drive

I am running this in a Samsung Galaxy S4 mini. KitKat Android. In the application, I use both GCM for messaging, and Google Drive API. I think the error I am getting is from GCM, but I am not sure. Here is LogCat: I/PersonaManager﹕…
8
votes
4 answers

Invalid parent folder error for AppFolder in Drive API

I get an invalid parent folder error, and I've seen the solutions to use resource ID rather than Drive ID, but it's a different scenario here. I'm trying to access the AppFolder, and this just uses the GoogleApiClient like so: this.appFolder =…
mmagician
  • 1,970
  • 2
  • 15
  • 26
8
votes
1 answer

How to Clear GoogleApiClient Default Account and Credentials

I connect a GoogleApiClient for use with Google Drive. I build the client like this: GoogleApiClient.Builder(this) .addApi(Drive.API) .addScope(Drive.SCOPE_FILE) .addConnectionCallbacks(this) …
Bob Snyder
  • 37,759
  • 6
  • 111
  • 158
8
votes
1 answer

How to download file from Google Drive using Drive.API?

I am using Google Drive.Api in order to get user's app data synced with users drive account. The user database is in sqlite database format. I have successfully uploaded the file in binary to the drive but failing to download the file from within…
1
2
3
56 57