Skip to content

Latest commit

 

History

History
 
 

android

DrEdit for Android

A walkthrough and more details are available on Google Drive SDK docs.

Setup Instructions

  1. Make sure you have Eclipse and the Android plugin for Eclipse installed.

  2. Clone DrEdit's git repo and init submodules:

     git clone [email protected]:googledrive/dredit.git && cd dredit
     git submodule init
     git submodule update --recursive
    
  3. Enable the Drive API for your API Project as described in Enable the Drive API.

  4. The contents of the android/ directory contains the project. Create an Android Application Project with the existing source.

  5. Generate and note the signing certificate's SHA-1 fingerprint as described in the Android quickstart's step 1

  6. Enable the Drive API for your API Project and setup OAuth 2.0 credentials for your Android application as described in the Android quickstart's step 2. You'll need your application's package name com.example.android.notepad and your SHA-1 signature from step 3.

  7. In the AndroidManifest.xml, replace the APPLICATION_ID with the ID of the APIs Console's application.

  8. Build the project and run it on a physical device or on the Android Emulator.

  9. Once you are signed in, test the app by creating and editing text files.

  10. Continue reading to find out how DrEdit is constructed, and how to modify it to work for your own application's needs.