Hi,

I am developing an application to access google health data on
android. I am using gdata library(gdata-src.java-1.41.1 on 2.1
platform). I am using eclipse Ganymede IDE.
Initially I had problem with the jar file so I downloaded source
code(App 30MB zipped file , 95 MB after extracting).

I am referring to this source through eclipse IDE. Now  when I try to
execute some statements I get following error!

org.xml.sax.SAXNotRecognizedException: 
http://xml.org/sax/features/external-parameter-entities

Here is the piece of the code:-

            Credentials c = new Credentials();
            String username = c.username;
            String password = c.password;

                // Create a new Health service
            GoogleService myService = new GoogleService("health","My
Application");
            //myService.setUserCredentials(args[0],args[1]);
            myService.setUserCredentials(username, password);

            // Get a list of all entries
            URL metafeedUrl = new URL("https://www.google.com/health/feeds/
profile/list");
            System.out.println("Getting Health profile entries...\n");
            Feed resultFeed = myService.getFeed(metafeedUrl, Feed.class);
            List<Entry> entries = resultFeed.getEntries();
            for(int i=0; i<entries.size(); i++)
            {
                  Entry entry = entries.get(i);
                  System.out.println("\t" + entry.getTitle().getPlainText());
            }

            System.out.println("\nTotal Entries: "+entries.size());



When I try to execute  Feed resultFeed =
myService.getFeed(metafeedUrl, Feed.class); - it throws above
exception.

Please help me out.

Additionally if you are having any good resources for "Google health
API on Android" please share with me.

Thanks in advance,
Rajendra Waghamre.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Health 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/googlehealthdevelopers?hl=en.

Reply via email to