[android-developers] Stable contact identity CONTENT_LOOKUP_URI

2009-11-02 Thread jarkman
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

Re: [android-developers] Stable contact identity CONTENT_LOOKUP_URI

2009-11-02 Thread Dmitri Plotnikov
Hi Richard, You are exactly right. If you want a robust persistent reference to a contact, you now need to use the lookup URI. Android itself uses lookup URIs for shortcuts, Quick Contact etc. The main reason contact ID is volatile is that Android 2.0 has contact aggregation, both automatic