Monday, November 2, 2009

[android-developers] Stable contact identity & CONTENT_LOOKUP_URI

In the course of moving to the 2.0 cotnact APIs, I've stumbled across
CONTENT_LOOKUP_URI :

http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html#CONTENT_LOOKUP_URI

"As long as the contact's row ID remains the same, this URI is
equivalent to CONTENT_URI. If the contact's row ID changes as a result
of a sync or aggregation, this URI will look up the contact using
indirect information "

Currently, we store contact IDs to identify particular contacts. If I
read this right, contact IDs will no longer be stable in the world of
2.0, and we will need to store a lookup URI (or at least a LOOKUP_KEY
and a row ID) in order to identify a contact in a stable way.

That would be a substantial change in our code. So, before I rush off
to do it, I'd love to find out if a contact row ID change is going to
be a routine thing (say, on every sync), or if it will be a very rare
thing (say, when two contacts are manually combined into one, or some
even rarer exception).

Any clues ?

Thanks,

Richard

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment