Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Thanks for your feedback mundhe.abhijeet.
Since you are developing an Android application, I strongly recommend you use
the version
2.1 alpha client instead. The problem with using the version 1 client in this
case is that
it indirectly depends on the javax.activation package. This package is
included in the
regular Java VM, but not in android.jar. On the other hand, in the version
2.1-alpha
client, media upload is done in a way that is compatible with android.jar.
There is
actually an example of it in:
http://code.google.com/p/gdata-java-client/source/browse/tags/2.1.0-
alpha/sample/picasa/picasa-atom-android-
sample/src/com/google/api/data/sample/picasa/PicasaBasicAtomAndroidSample.java
Please try it, and let me know if you run into any problems.
Original comment by yanivin...@gmail.com
on 9 Apr 2010 at 1:51
Hi all!
I tried using the gcode-2.1.0-alpha.jar and it works fine. My problem is that I
do
not have a 2.1 device and I cannot create a google account on emulator.
Is there an easier way to login to google, without using AccountManager? It
would be
great if I could just specify the URL with username and password.
Thanks
Original comment by bgaborc...@gmail.com
on 16 May 2010 at 5:30
Excellent question. Please take a look at my response at this e-mail thread:
http://groups.google.com/group/gdata-java-client/browse_thread/thread/b297a7b652
133d22
Original comment by yanivin...@gmail.com
on 16 May 2010 at 8:08
Thanks for you reply.
I am using your picasa sample app. I tried to modify it to download all google
documents for a user. The login part works fine, but I get a 404 (NOT FOUND)
error
when I send the following GET request on Android Emulator:
https://docs.google.com/feeds/documents/private/full
and header:
[User-Agent: google-documentlistsample-1.0 Google-API-Java/2.2.0-alpha(gzip),
Authorization: OAuth oauth_consumer_key="anonymous",
oauth_nonce="698f4dd6eb7b3805",
oauth_signature="szA0gUI8i%2BAnXzU8ce4vyKBW%2BYw%3D",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1274615331",
oauth_token="1/thbXYaBfOHPSiUyisUYdrFQalckYEsiO4Pa9FbTqxNI", Accept-Encoding:
gzip,
GData-Version: 3]
Do you have any ideas why this is happening?
Original comment by bgaborc...@gmail.com
on 23 May 2010 at 11:55
bgaborchen: the appropriate place to ask this question is in the Documents List
API Help Forum:
http://www.google.com/support/forum/p/apps-apis/label?lid=5c316c702e844c99&hl=en
That said, my guess is that the URL is incorrect, and I think it should be
https://docs.google.com/feeds/default/private/full
Original comment by yanivin...@gmail.com
on 25 May 2010 at 1:52
Hi, I am trying using version gdata-java-2.1.0-alpha but I have a doubt, I read
in
forum that I should use OAuth instead of account manager in my application,
which also
has the advantage of working across all Android devices, including the 1.5 SDK.
But how to use OAuth and wat exact changes I have to make if I want to use
OAuth in
that Picasa sample example.
Original comment by mundhe.a...@gmail.com
on 31 May 2010 at 11:01
Closing this issue since Android is not supported by the version 1 client
library. Please direct further questions to the Google Group
(http://groups.google.com/group/gdata-java-client).
Regarding OAuth vs. AccountManager. AccountManager is the preferred choice
because it provides a much better user experience. OAuth is only recommended
if you need support for older Android devices like 1.5 and 1.6. Please take a
look at the Picasa Web Albums example for a detailed example of both approaches
(http://gdata-java-client.googlecode.com/svn/tags/2.2.1-alpha/sample/picasa/pica
sa-atom-android-sample/instructions.html).
Original comment by yanivin...@gmail.com
on 16 Jun 2010 at 4:18
I've also refactored your Picasa sample to integrate into Google Docs. I'm
continually getting an expired token when I run the sample - though the
original code works perfectly against Picasa. Any idea why Docs would act
differently than Picasa?
Original comment by NickLong...@gmail.com
on 19 Jun 2010 at 3:13
NickLonginow: great question (I don't actually know the answer), but please ask
it on the Google Group (gdata-java-client).
Original comment by yanivin...@gmail.com
on 22 Jun 2010 at 7:16
Solved. Your code works perfectly as-is. If it helps, I'd be willing to post
my example google-docs version of your Picasa into the SVN as a help to others.
Question - your example here opens a Browser via the webintent (to capture user
acceptance of access to google site by the app). Any idea how to kill that
window (browser) once done? Might confuse the user later if they see it still
sitting there, ie, if they do a back-button click...
Original comment by NickLong...@gmail.com
on 24 Jun 2010 at 2:25
Original issue reported on code.google.com by
mundhe.a...@gmail.com
on 24 Feb 2010 at 6:00