publicstaticfinalclass
ContactsContract.PhoneLookup
extendsObject
implementsBaseColumnsContactsContract.ContactOptionsColumnsContactsContract.ContactsColumnsContactsContract.PhoneLookupColumns
java.lang.Object
android.provider.ContactsContract.PhoneLookup
ClassOverview
Atablethatrepresentstheresultoflookingupaphonenumber,forexampleforcallerID.
ToperformalookupyoumustappendthenumberyouwanttofindtoCONTENT_FILTER_URI.
Thisqueryishighlyoptimized.
电话号码的查询可以用如下方式实现。
StringphoneNumber="1367890660";
Uriuri=Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,Uri.encode(phoneNumber));
c=context.getContentResolver().query(uri,null,null,null,null);
能查询到的信息共14项
Columns
PhoneLookup
long_IDread-onlyDatarowID.
StringNUMBERread-onlyPhonenumber.
StringTYPEread-onlyPhonenumbertype.SeeContactsContract.CommonDataKinds.Phone.
StringLABELread-onlyCustomlabelforthephonenumber.SeeContactsContract.CommonDataKinds.Phone.
ColumnsfromtheContactstable(ContactsContract.Contacts)arealsoavailablethroughajoin.
JoinwithContacts
StringLOOKUP_KEY
StringDISPLAY_NAME
longPHOTO_ID
intIN_VISIBLE_GROUP
intHAS_PHONE_NUMBER
intTIMES_CONTACTED
longLAST_TIME_CONTACTED
intSTARRED
StringCUSTOM_RINGTONE
intSEND_TO_VOICEMAIL
注意查询到的信息项都标记为只读的。我想这里的查询应该就是调用的数据库中存储过程。
从逻辑上来讲就是只读的。所以系统在这里就把标记为只读的了。
ContactsContract.PhoneLookup
extendsObject
implementsBaseColumnsContactsContract.ContactOptionsColumnsContactsContract.ContactsColumnsContactsContract.PhoneLookupColumns
java.lang.Object
android.provider.ContactsContract.PhoneLookup
ClassOverview
Atablethatrepresentstheresultoflookingupaphonenumber,forexampleforcallerID.
ToperformalookupyoumustappendthenumberyouwanttofindtoCONTENT_FILTER_URI.
Thisqueryishighlyoptimized.
电话号码的查询可以用如下方式实现。
StringphoneNumber="1367890660";
Uriuri=Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,Uri.encode(phoneNumber));
c=context.getContentResolver().query(uri,null,null,null,null);
能查询到的信息共14项
Columns
PhoneLookup
long_IDread-onlyDatarowID.
StringNUMBERread-onlyPhonenumber.
StringTYPEread-onlyPhonenumbertype.SeeContactsContract.CommonDataKinds.Phone.
StringLABELread-onlyCustomlabelforthephonenumber.SeeContactsContract.CommonDataKinds.Phone.
ColumnsfromtheContactstable(ContactsContract.Contacts)arealsoavailablethroughajoin.
JoinwithContacts
StringLOOKUP_KEY
StringDISPLAY_NAME
longPHOTO_ID
intIN_VISIBLE_GROUP
intHAS_PHONE_NUMBER
intTIMES_CONTACTED
longLAST_TIME_CONTACTED
intSTARRED
StringCUSTOM_RINGTONE
intSEND_TO_VOICEMAIL
注意查询到的信息项都标记为只读的。我想这里的查询应该就是调用的数据库中存储过程。
从逻辑上来讲就是只读的。所以系统在这里就把标记为只读的了。