GithubHelp home page GithubHelp logo

Comments (27)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024

Original comment by [email protected] on 21 Oct 2010 at 3:11

  • Added labels: Type-Sample

from google-api-java-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024

Original comment by [email protected] on 12 Nov 2010 at 1:41

  • Added labels: Priority-Low

from google-api-java-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024

Original comment by [email protected] on 12 Nov 2010 at 1:58

  • Changed state: Accepted

from google-api-java-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024

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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024

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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
waiting ........................

Original comment by [email protected] on 18 Feb 2011 at 5:23

from google-api-java-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024

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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024

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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.