how to access google health data from android

10 views
Skip to first unread message

hitansu kumar

unread,
Apr 15, 2011, 11:09:28 AM4/15/11
to gdata-java-client
In my code i am using gdata api and using client-login authentication
method .But it is giving parsing related exception while calling the
function getFeed().Here is my code:


HealthService healthservice=new HealthService("TCS-
GoogleHealthMobility-1.5");

healthservice.setUserCredentials("","");
System.out.println("health service object"+healthservice);
Feed profileListFeed =
healthservice.getFeed(new URL ("https://www.google.com/health/feeds/
profile/list"),Feed.class);

is in this way it possible?
plz suggest me how to proceed and which api should i use.

md.murshad-ul-haque riyadh

unread,
Apr 15, 2011, 1:23:13 PM4/15/11
to gdata-ja...@googlegroups.com
what are the errors????????????????????????
Message has been deleted

alex

unread,
Jun 8, 2011, 10:40:28 PM6/8/11
to gdata-java-client
I got the same problem. the error msg is as follows,

06-09 02:01:53.923: WARN/XmlParser(423):
javax.xml.parsers.ParserConfigurationException:
org.xml.sax.SAXNotRecognizedException: http://xml.org/sax/features/external-parameter-entities
06-09 02:01:53.923: WARN/XmlParser(423):
javax.xml.parsers.ParserConfigurationException:
org.xml.sax.SAXNotRecognizedException: http://xml.org/sax/features/external-parameter-entities
06-09 02:01:53.923: WARN/XmlParser(423): at
org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:
84)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.util.XmlParser.parse(XmlParser.java:682)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:867)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
68)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
39)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
100)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
52)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
66)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
34)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.client.Service.parseResponseData(Service.java:2165)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.client.Service.parseResponseData(Service.java:2098)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.client.Service.getFeed(Service.java:1136)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.client.Service.getFeed(Service.java:998)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
06-09 02:01:53.923: WARN/XmlParser(423): at
com.google.gdata.client.Service.getFeed(Service.java:1017)



On Apr 15, 1:23 pm, "md.murshad-ul-haque riyadh"
Reply all
Reply to author
Forward
0 new messages