Open GoogleCodeExporter opened 9 years ago
Original comment by yan...@google.com
on 21 Oct 2010 at 3:11
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 ptas...@gmail.com
on 21 Oct 2010 at 3:53
Original comment by yan...@google.com
on 12 Nov 2010 at 1:41
Original comment by yan...@google.com
on 12 Nov 2010 at 1:58
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 yan...@google.com
on 21 Dec 2010 at 2:51
got multiple requests to also include upload and download functionality
Original comment by yan...@google.com
on 21 Dec 2010 at 2:54
Issue 23 has been merged into this issue.
Original comment by yan...@google.com
on 21 Dec 2010 at 2:55
Issue 46 has been merged into this issue.
Original comment by yan...@google.com
on 21 Dec 2010 at 2:55
Issue 58 has been merged into this issue.
Original comment by yan...@google.com
on 21 Dec 2010 at 2:56
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 paulo...@gmail.com
on 21 Dec 2010 at 6:35
Original comment by yan...@google.com
on 22 Dec 2010 at 12:29
Issue 93 has been merged into this issue.
Original comment by yan...@google.com
on 31 Dec 2010 at 7:30
Original comment by yan...@google.com
on 31 Dec 2010 at 7:31
Issue 94 has been merged into this issue.
Original comment by yan...@google.com
on 3 Jan 2011 at 1:58
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 paulo...@gmail.com
on 5 Jan 2011 at 7:15
Issue 92 has been merged into this issue.
Original comment by yan...@google.com
on 8 Jan 2011 at 2:30
Issue 119 has been merged into this issue.
Original comment by yan...@google.com
on 17 Feb 2011 at 1:21
Issue 121 has been merged into this issue.
Original comment by yan...@google.com
on 17 Feb 2011 at 1:21
Issue 123 has been merged into this issue.
Original comment by yan...@google.com
on 17 Feb 2011 at 1:22
waiting ........................
Original comment by zuzo...@gmail.com
on 18 Feb 2011 at 5:23
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 dan.shne...@gmail.com
on 18 Feb 2011 at 6:06
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
Original comment by yan...@google.com
on 26 Apr 2011 at 11:19
Original comment by yan...@google.com
on 27 Aug 2011 at 4:26
Issue 282 has been merged into this issue.
Original comment by yan...@google.com
on 27 Aug 2011 at 4:27
Issue 231 has been merged into this issue.
Original comment by yan...@google.com
on 27 Aug 2011 at 4:42
@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 nabilaz...@gmail.com
on 30 Dec 2011 at 10:23
Original issue reported on code.google.com by
ptas...@gmail.com
on 14 Sep 2010 at 1:30