4
有人可以向我解釋什麼是runQueryOnBackgroundThread,因爲我已經閱讀了一些資源,但仍然不理解它?有人可以向我解釋runQueryOnBackgroundThread嗎?
@Override
public Cursor runQueryOnBackgroundThread(CharSequence constraint){
FilterQueryProvider filter = getFilterQueryProvider();
if (filter != null){
return filter.runQuery(constraint);
}
Uri uri = Uri.withAppendedPath(
ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI, Uri.encode(constraint.toString()));
return content.query(uri, CONTACT_PROJECTION, null, null, null);
}