我认为会是这样的:
Cursor c = contactDBHelper.listOne(id);
Cursor d = contactDBHelper.listOneText();
if(c.moveToFirst()){
do{
if(c.getString(5).toString() == d.getString(1).toString()){
txt.setText(d.getString(1));
}else{
customR.setChecked(true);
txt.setText(c.getString(5));
standardR.setChecked(false);
}
}while(c.moveToNext());
}
但显然不是。有人知道如何完成这个任务吗?