情况if(C.moveToFirst())
对我来说是假的,但不知道为什么。
void Serch(View v, Layout layout){
Uri Contacts = android.provider.ContactsContract.Contacts.CONTENT_URI;
Cursor C = getContentResolver().query(Contacts, null, null, null, null);
if(C == null)
return;
if(C.moveToFirst()){
do{
String display_ContactsName = getValue(C,android.provider.ContactsContract.Contacts.DISPLAY_NAME);
if(Check(display_ContactsName) == false)
continue;
break;
} while(C.moveToNext());
}
}