Comments (27)
Original comment by [email protected]
on 21 Oct 2010 at 3:11
- Added labels: Type-Sample
from google-api-java-client.
I can provide the code (ready and running) for OAuth + List/Spreadsheets for
Android, but it would need some cleanup and adaptation to form a proper code
sample.
Original comment by [email protected]
on 21 Oct 2010 at 3:53
from google-api-java-client.
Original comment by [email protected]
on 12 Nov 2010 at 1:41
- Added labels: Priority-Low
from google-api-java-client.
Original comment by [email protected]
on 12 Nov 2010 at 1:58
- Changed state: Accepted
from google-api-java-client.
http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html
Original comment by [email protected]
on 21 Dec 2010 at 2:51
- Changed title: docs-v3-atom-android-sample and spreadsheets-v3-atom-android-sample
from google-api-java-client.
got multiple requests to also include upload and download functionality
Original comment by [email protected]
on 21 Dec 2010 at 2:54
from google-api-java-client.
Issue 23 has been merged into this issue.
Original comment by [email protected]
on 21 Dec 2010 at 2:55
from google-api-java-client.
Issue 46 has been merged into this issue.
Original comment by [email protected]
on 21 Dec 2010 at 2:55
from google-api-java-client.
Issue 58 has been merged into this issue.
Original comment by [email protected]
on 21 Dec 2010 at 2:56
from google-api-java-client.
any idea when this is going to be available?
i was able to upload a file but they are always converted to document format
(word) and i can't change privacy settings :|
Original comment by [email protected]
on 21 Dec 2010 at 6:35
from google-api-java-client.
Original comment by [email protected]
on 22 Dec 2010 at 12:29
- Added labels: Priority-Medium
- Removed labels: Priority-Low
from google-api-java-client.
Issue 93 has been merged into this issue.
Original comment by [email protected]
on 31 Dec 2010 at 7:30
from google-api-java-client.
Original comment by [email protected]
on 31 Dec 2010 at 7:31
- Added labels: Priority-High
- Removed labels: Priority-Medium
from google-api-java-client.
Issue 94 has been merged into this issue.
Original comment by [email protected]
on 3 Jan 2011 at 1:58
from google-api-java-client.
Here is an example of how to upload a jpeg from android to google docs.
but i still have a lot of issues:
- The file ends up inside a word file, the flag convert=false does not work.
- I would like to post some metada with it and for some reason i can't make it
work (tried with a MultipartRelatedContent )
- I'd like to change the acl to allow publishing of the document to people who
have a link, also can't get this to work :|
- can't create folders also..
i hope the example helps somebody, and if anybody manage to found a solution to
my issues, please let me know :)
public static String uploadFileToGoogleDocs(HttpTransport transport) {
HttpRequest request = transport.buildPostRequest();
request.url = new GoogleUrl(
"https://docs.google.com/feeds/default/private/full/");
GoogleHeaders headers = (GoogleHeaders) transport.defaultHeaders;
headers.contentType = "image/jpeg";
headers.gdataVersion = "3";
headers.slug = "examplefile";
AtomParser parser = new AtomParser();
parser.namespaceDictionary = Namespace.DICTIONARY;
transport.addParser(parser);
File file = new File("/sdcard/DCIM/Camera/1293926357481.jpg");
InputStreamContent bContent = new InputStreamContent();
try {
bContent.setFileInput(file);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
bContent.type = "image/jpeg";
request.content = bContent;
com.google.api.client.http.HttpResponse res2;
try {
res2 = request.execute();
return Utils.getStreamAsString(res2.getContent());
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
Original comment by [email protected]
on 5 Jan 2011 at 7:15
from google-api-java-client.
Issue 92 has been merged into this issue.
Original comment by [email protected]
on 8 Jan 2011 at 2:30
from google-api-java-client.
Issue 119 has been merged into this issue.
Original comment by [email protected]
on 17 Feb 2011 at 1:21
from google-api-java-client.
Issue 121 has been merged into this issue.
Original comment by [email protected]
on 17 Feb 2011 at 1:21
from google-api-java-client.
Issue 123 has been merged into this issue.
Original comment by [email protected]
on 17 Feb 2011 at 1:22
from google-api-java-client.
waiting ........................
Original comment by [email protected]
on 18 Feb 2011 at 5:23
from google-api-java-client.
Thanks. Can you please provide a working docs sample for android (2.1 and
above)?
Something I can import and run so I can learn from that?
Not familiar with the Authentication methods and with using the Google API
(Again, as said before, am familiar with android. developed few apps already)
Original comment by [email protected]
on 18 Feb 2011 at 6:06
from google-api-java-client.
If you wanted to add a title to the document, how would you do that ?
Original comment by jeremyvillalobos
on 25 Mar 2011 at 3:06
from google-api-java-client.
Original comment by [email protected]
on 26 Apr 2011 at 11:19
- Added labels: Priority-Low
- Removed labels: Priority-High
from google-api-java-client.
Original comment by [email protected]
on 27 Aug 2011 at 4:26
- Changed title: docs-android-sample
- Added labels: Priority-Medium
- Removed labels: Priority-Low
from google-api-java-client.
Issue 282 has been merged into this issue.
Original comment by [email protected]
on 27 Aug 2011 at 4:27
from google-api-java-client.
Issue 231 has been merged into this issue.
Original comment by [email protected]
on 27 Aug 2011 at 4:42
from google-api-java-client.
@paulo, can you offer a little bit more detail on how you get that bit of code
to work and upload a jpeg to google docs? I'm new to developing android apps
and got several errors when trying to use your code, probably because I don't
have the right libraries etc.
Original comment by [email protected]
on 30 Dec 2011 at 10:23
from google-api-java-client.
Related Issues (20)
- Calendar Sample for Android HOT 5
- Calendar V2 Atom OAuth Sample for App Engine HOT 7
- AccessControlException thrown when running on Google App Engine HOT 3
- google map and client login example HOT 6
- blogger-v2-atom-oauth-sample HOT 4
- contacts-cmdline-sample HOT 10
- youtube-v2-atom-oauth-sample HOT 10
- health-v2-atom-android-sample HOT 6
- 2-legged OAuth Provisioning API HOT 4
- latitude-v1-json-android-sample HOT 4
- 2-legged OAuth sample HOT 5
- Defect in Prediction API - need to add access method for mixture and numeric data type HOT 5
- Google Documents V3 sample on Android HOT 9
- youtube-v2-atom-android-sample HOT 13
- Android example for Doc List API v3 HOT 4
- Google App Engine low-level HTTP transport based on URLFetch HOT 2
- books-v2-atom-android-sample HOT 4
- Youtube HOT 2
- Upload a CSV file to Google Spreadsheets using google-api-java-client 1.1.1-alpha HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-api-java-client.