android 查找联系人方法(支持首拼,全拼,英文)

//google源码:


public Cursor searchContact(Context ctxt, CharSequence constraint) {
Uri uri = Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI, Uri.encode(cons));
return ctxt.getContentResolver().query(uri,
  PROJECTION_PHONE,
  null, //selection,
  null,
  SORT_ORDER);
}

你可能感兴趣的:(android,filter,null)