Closed GoogleCodeExporter closed 8 years ago
This is exactly the behaviour I mentioned earlier in one of my emails when I
was proposing to get more reliable address sync. This problem only occurs with
contacts having a postal address! The sync from server to phone seems to be OK.
But for some reason the contacts get synced back to the server (even if not
changed on the phone) and normally the phone numbers (and maybe other fields)
get erased on the server.
I think the reason for the unwanted sync from phone to server is located in the
method "private Contact loadItem(Cursor personCursor) throws SyncException" in
src/at/dasz/KolabDroid/ContactsContract/SyncContactsHandler.java. The method
loads all the necessary fields except addresses which lead to a different hash
code of the Contact object. That then triggers the unwanted sync.
I don't know why then the contact on the server gets messed up...
Original comment by must...@gmx.de
on 26 May 2011 at 1:17
Messing up the original document could be a result of mixing up both writeXml
Methods. I'll have an look at it.
Original comment by arthur.z...@gmail.com
on 27 May 2011 at 7:33
Original comment by arthur.z...@gmail.com
on 27 May 2011 at 2:57
Should be better now. Won't close until more testing have been done.
Version 0.8 DOES NOT SUPPORT POSTAL ADDRESSES! But it should be preserved.
Original comment by arthur.z...@gmail.com
on 24 Jun 2011 at 8:26
JUHU! Fixed! (in Version 0.8) Thanks for this very good example!
Original comment by arthur.z...@gmail.com
on 28 Jun 2011 at 4:48
Original issue reported on code.google.com by
chrill...@googlemail.com
on 26 May 2011 at 11:49Attachments: