0

I want to search the contact list to get a particular contact using _ID or LOOKUP_KEY. Which one of these two is better and the reason. It will be really helpful if you give the main differences of both.

Venkat
  • 41
  • 7
  • http://developer.android.com/reference/android/provider/ContactsContract.ContactsColumns.html#LOOKUP_KEY check this out – Saqib Mar 06 '14 at 07:01

1 Answers1

0

Android Doc says-

  1. _ID - Row ID. Consider using LOOKUP_KEY instead.

  2. LOOKUP_KEY - An opaque value that contains hints on how to find the contact if its row id changed as a result of a sync or aggregation.

So when in case the contacts RowID change for any reason LOOKUP_KEY is our way to go. Check this link on how to find it as this is not there on Docs I guess.

Community
  • 1
  • 1
Atul O Holic
  • 6,692
  • 4
  • 39
  • 74