正确的做法Cursor cursor = sd.rawQuery("select * from contect where QT_CUSTOM like ?", new String[]{"%"+searchEdit.getText().toString().trim()+"%"});
应该将?放在后边