Great stuff Mark, thank you very much.  As a first step I'll try
recompiling the gdata stuff and see what happens.
cheers,
Ian

On Oct 13, 10:14 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> androidian wrote:
> > I imported gdata-core-1.0.jar and gdata-spreadsheet-1.0.jar into my
> > project and the SpreadsheetService class comes from the latter.  The
> > HTTP requests must be being done in the setUserCredentials method (all
> > inside those two jars).  Perhaps one of those jars is not compatible
> > with android?  
>
> Off the cuff, given the symptoms, I'd say that's likely.
>
>  > Is there a support matrix somewhere that I can check?
>
> Not that I'm aware of.
>
> There are at least two possible problems with any given third-party JAR:
>
> 1. The JAR makes assumptions regarding the underlying Java platform, in
> terms of available APIs or their behavior, and those assumptions fall
> down in the case of Android's Dalvik.
>
> 2. The JAR was compiled with an incompatible version of the Java
> compiler, so the bytecode that the Android build process uses gets
> fouled up.
>
> For example, with Beanshell (http://www.beanshell.org), using the JAR
> downloaded straight from the site didn't work for, um, beans. However,
> when I recompiled Beanshell, using the same compiler as with the rest of
> my project, it worked just fine.
>
> > I'm a little bit confused as to why there would be incompatibilities -
> > can you elaborate?
>
> Assuming those JARs don't have any dependencies of their own (e.g., they
> did not make you copy even more JARs into your project), they are
> probably using HttpUrlConnection and kin for doing their HTTP work. I
> would suspect that the Google Docs login process requires SSL.
>
> So, going back to my two points above:
>
> 1. It may be that SSL handling in Dalvik behaves differently than it
> does in whatever JavaSE edition your JARs were written for
>
> 2. It may be that a simple recompile of those JARs from source will suffice
>
> > My manifest:
>
> Well, that looks OK, at least in terms of where your uses-permission
> element lives. Sometimes people put that inside the application element
> by mistake, and Android is pretty picky about that sort of thing.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 
> 2009http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to