Switch branches/tags
Find file History
Latest commit f647676 Dec 6, 2018


Google Drive Android API Migration

This application serves as an example of how to replicate the now-deprecated Drive Android API's functionality using equivalent Drive REST API calls. See the migration guide for an overview of the migration steps.

What does it do?

  • Creates text files in the user's My Drive folder
  • Edits file contents and metadata and saves them to Drive
  • Displays a file picker for opening Drive files in read-only mode
  • Queries the REST API for all files visible to the app

Set Up

  1. Install the Android SDK.
  2. Download and configure the Google Play services SDK.
  3. Create a Google API Console project and enable the Drive API library.
  4. Register an OAuth 2.0 client for the package com.google.android.gms.drive.sample.driveapimigration with your own debug keys.
  5. Add the ../auth/drive.file scope to the OAuth consent screen in the API Console.

See full instructions in the Getting Started guide.