title: ANDROID: How do I filter a list of Contacts with a CursorLoader based on a list of standardized phone numbers
body: <p>I have a list of phone numbers that I have stripped to all be just the ten digits. I want to use that list to filter on a cursor, but I cannot get the incoming list into the same format (just the ten digit number). I can't use <code>PhoneLookup.CONTENT_FILTER_URI</code> because that can only compare against one phone number, and same with the <code>PHONE_NUMBERS_EQUAL(</code> sqlite function. This is what I have so far as my selection statement:</p>
  
  <p><code>Contacts.DISPLAY_NAME_PRIMARY +
                          "&lt;&gt;''" + " AND " + Contacts.IN_VISIBLE_GROUP + "=1" +
                          " AND " + ContactsContract.CommonDataKinds.Phone.NUMBER + " IN (" +
                          TextUtils.join(",", Collections.nCopies(registeredPhoneNumbers.size(), "?")) + ")";</code></p>
  
  <p>It is currently working for some phone numbers, but not others (depending on how I saved the contact's phone number). Any ideas on how I can get the filter to work using the CursorLoader?</p>