An open API service indexing awesome lists of open source software.

https://github.com/mendhak/googledocs-upload-sample

Android sample code to authorize with OAuth2, upload a doc and update it.
https://github.com/mendhak/googledocs-upload-sample

Last synced: 10 months ago
JSON representation

Android sample code to authorize with OAuth2, upload a doc and update it.

Awesome Lists containing this project

README

          

**Google API Java Client upload to Google Docs**

This is a sample Android application which uses the [google-api-java-client](http://code.google.com/p/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](http://code.google.com/p/google-api-java-client/) library.

It uses [OAuth2](https://developers.google.com/accounts/docs/OAuth2InstalledApp) for authorization.

It follows [Google Documents List Data API v3.0](http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html).

-----------

**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.