Fixing crash in ContactManager: Changing ContactsContract.Contacts.LOOKUP_KEY to

ContactsContract.Contacts._ID.
This commit is contained in:
Trevor Johns
2009-12-08 23:23:53 -08:00
parent 5865825df6
commit bba4ff7c38

View File

@@ -103,7 +103,7 @@ public final class ContactManager extends Activity
// Run query
Uri uri = ContactsContract.Contacts.CONTENT_URI;
String[] projection = new String[] {
ContactsContract.Contacts.LOOKUP_KEY,
ContactsContract.Contacts._ID,
ContactsContract.Contacts.DISPLAY_NAME
};
String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '" +