A walkthrough and more details are available on Google Drive SDK docs.
-
Make sure you have Eclipse and the Android plugin for Eclipse installed.
-
Clone DrEdit's git repo and init submodules:
git clone [email protected]:googledrive/dredit.git && cd dredit git submodule init git submodule update --recursive
-
Enable the Drive API for your API Project as described in Enable the Drive API.
-
The contents of the
android/
directory contains the project. Create an Android Application Project with the existing source. -
Generate and note the signing certificate's SHA-1 fingerprint as described in the Android quickstart's step 1
-
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. -
In the
AndroidManifest.xml
, replace theAPPLICATION_ID
with the ID of the APIs Console's application. -
Build the project and run it on a physical device or on the Android Emulator.
-
Once you are signed in, test the app by creating and editing text files.
-
Continue reading to find out how DrEdit is constructed, and how to modify it to work for your own application's needs.