Google API Java Client upload to Google Docs
This is a sample Android application which uses the google-api-java-client library to demonstrate uploading a file to Google Docs.
This app will
- Perform OAuth2 authorization against Google Docs
- Create a folder (known as a collection) in Google Docs
- Upload a file to Google Docs (inside that folder)
- Update a file on Google Docs
I'm creating this sample app because there is very little in the way of examples on uploading to Google Docs and using the google-api-java-client library.
This app uses the google-api-java-client library.
It uses OAuth2 for authorization.
It follows Google Documents List Data API v3.0.
Pure Java Version
I have added a pure Java version that uses HttpURLConnection to upload to Google Docs. Using the google-api-java-client library added around 600 kb to my APK, this should alleviate that problem.