You can do this by updating/adding by the location in the list.

int relUpdate = 0;  //the location in the list just as in an array 0,
1, 2, etc
String PhoneN = "555-5555";  //the phone number you want to update
String relPhone = "work";  //work, home, mobile, etc

PhoneNumber workPn = new PhoneNumber();
workPn.setPhoneNumber(PhoneN);
workPn.setRel("http://schemas.google.com/g/2005#"; + relPhone);
entry.getPhoneNumbers().set(relUpdate, workPn);
entry.update();

Add automation to shuffle the list up or down as you like.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" 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/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to