Hi,
Each user can have more than one profile. Yo have to obtain the list of
profiles and select the one you want:
Feed profileListFeed = healthService.getFeed(new
URL("https://www.google.com/health/feeds/profile/list", Feed.class);
List<Entry> entries = profileListFeed.getEntries();
for (Entry profileListEntry : entries) {
System.out.println("Profile name: " +
profileListEntry.getTitle().getPlainText());
System.out.println("Profile id: " + profileListEntry.getPlainTextContent());
}
// Select the user's first profile
String firstProfileID = entries.get(0).getPlainTextContent();
//and then you can make the request to the url
"https://www.google.com/health/feeds/profile/ui/" + firstProfileID;
Here you have more information:
http://code.google.com/intl/es-ES/apis/health/docs/2.0/developers_guide_java.html
Good luck!
2010/6/8 Megha Bapat <[email protected]>
> hello,
> I am building an application for google health using android as my
> final year project.
> So far i have been able to authenticate the account using Clientlogin. I
> need to retrieve the google health profile related to this token.
> How can i do this? please guide me.... is gdata library supported by
> android 1.5 or should i switch to android 1.6 for making use of this
> library.
> Please help its urgent as my submission date is very near.
> Thanking you.....in adv..
>
> --
> 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]<googlehealthdevelopers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/googlehealthdevelopers?hl=en.
>
--
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.