아래처럼 번호를 기준으로 검색할 수 있습니다.
String number = "010xxxxyyyy"
String[] whereArgs = new String[]{number};
Cursor cursor = getActivity().getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, ContactsContract.CommonDataKinds.Phone.NUMBER + " = ?", whereArgs, null);
if(cursor != null){
int nameIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME);
if(cursor.moveToNext()){
String name = cursor.getString(nameIndex);
Toast.makeText(getActivity(), "Name: " + name, Toast.LENGTH_SHORT).show();
}
}