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.
- Host: GitHub
- URL: https://github.com/mendhak/googledocs-upload-sample
- Owner: mendhak
- Created: 2012-03-04T22:24:49.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-06-22T12:40:10.000Z (over 12 years ago)
- Last Synced: 2025-02-28T08:17:11.293Z (11 months ago)
- Language: Java
- Size: 1.84 MB
- Stars: 7
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.