Tuesday, June 15, 2010

[android-developers] Re: Standalone java code is not working in the same way from android.

On Jun 15, 10:30 am, Achanta <krishna.acha...@gmail.com> wrote:
> I am trying to integrate Google Health on android and am trying to use
> a client login example which is working fine as a standalone java
> program. But when I implement the same in android it gives me all
> these errors. I guess I am missing some saxparser
> libraries.

The problem is this:

> I/dalvikvm(10388): Could not find method javax.xml.parsers.SAXParserFactory.getSchema, referenced from method com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory $SecureSAXParserFactory.getSchema

> I/dalvikvm(10388): Could not find method javax.xml.parsers.SAXParserFactory.setSchema, referenced from method com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory $SecureSAXParserFactory.setSchema

Looking at the Eclair version of SAXParserFactory:


http://android.git.kernel.org/?p=platform/dalvik.git;a=blob;f=libcore/xml/src/main/java/javax/xml/parsers/SAXParserFactory.java;h=ebf053198e0babc6a668c6cb8dca561d2dd8a789;hb=eclair#l99

the definition of getSchema() is commented out, with the remark "TODO
No XSchema support in Android 1.0. Maybe later."

So this won't work yet.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment