2
Uri contactUri1 = Uri.withAppendedPath(
    ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number1));
Cursor phones = getContentResolver()
    .query(contactUri1, PEOPLE_PROJECTION, null, null, null);

This works. I can get what I need in the cursor given number1.

What I want is to query for multiple numbers and get all the results in the same cursor.

EXAMPLE:

Uri contactUri1 = ...
Uri contactUri2 = ...
Cursor phones = getContentResolver().query(...  //Both URI's

Is that possible?

Mosty Mostacho
  • 42,742
  • 16
  • 96
  • 123
yildirimyigit
  • 3,013
  • 4
  • 25
  • 35

0 Answers0