I have to select from the ContactsContract table of an android device some contacts, checking the LOOKUP_KEY value of the contact.
I have to do a single query, to which I pass many LOOKUP values. So far i did something like the code you see beloew, that of course is not correct:
Cursor cursor = contentResolver.query(
ContactsContract.Contacts.CONTENT_URI,
null,
ContactsContract.Contacts.LOOKUP_KEY + " =?",
new String[] {"f2hsk", "djkf7fk", "hf74fnk2"},
null);
I tried also using ContactsContract.Contacts.LOOKUP_KEY + " IN?" but I get a synthax error.
I hope is clear what I have to achieve.
Thank you in advance