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)
- Method Credential.refreshToken calls TokenResponseException.from which throws NullPointerException HOT 10
- teste HOT 1
- Drive.Files.Get getMediaHttpDownloader() returns null HOT 1
- NullPointerException if invalid client authentification HOT 2
- REST XML client HOT 1
- Contacts API HOT 1
- Working sample for Android HOT 1
- Vacation responder for personal gmail HOT 1
- google translate api v2 sample HOT 1
- 404 Error while accessing https://www.googleapis.com/oauth2/v1/certs HOT 4
- https://www.googleapis.com/oauth2/v1/certs does't working 404 HOT 1
- The signature of com.google.api.client.util.Data#nullOf is incorrect. HOT 2
- Return the full sized images with the Google Play Developer API HOT 1
- Only require a context-sensitive subset of permissions for Service Accounts HOT 6
- Gradle should use https:// instead of http:// HOT 3
- java.lang.IllegalArgumentException: key expires_in HOT 1
- sort order for youtube video search results does not work as exoected HOT 1
- NoClassFound HOT 1
- java.lang.NoSuchMethodError: com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setServiceAccountScopes(Ljava/lang/Iterable; HOT 2
- Gmail Api Potential memory leak in com.google.api.client.util.escape.Platform 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.