ContentResolver.query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
第三个参数写成你想要的条件,第四个参数设为null.
如:
Cursor cursor=getContentResolver().query(Phones.CONTENT_URI, null, Phones.NUMBER+" LIKE"+" '%"+ text +"%'"+" OR "+Phones.NAME+" LIKE"+" '%"+text+"%'", null, null);