String contact = people.getString(nameFieldColumnIndex); int numberFieldColumnIndex = people.getColumnIndex(PhoneLookup.NUMBER); String number = people.getString(numberFieldColumnIndex); } people.close(); 其中红色加粗部分为获取系统联系人电话号码代码。但如果你使用的是2.0或2.0以上的API那么程序将提示...
一、PhoneLookup.CONTENT_FILTER_URI的一般用法 Uri uri=Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber)); resolver.query(uri,newString[]{PhoneLookup.DISPLAY_NAME,... API见这里。如果直接如下使用PhoneLookup.CONTENT_FILTER_URI会报IllegalArgument Exception错 getContentResolver()...
一、PhoneLookup.CONTENT_FILTER_URI的一般用法 Uri uri=Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber)); resolver.query(uri,newString[]{PhoneLookup.DISPLAY_NAME,... API见这里。如果直接如下使用PhoneLookup.CONTENT_FILTER_URI会报IllegalArgument Exception错 getContentResolver()...
importandroid.provider.ContactsContract.PhoneLookup; importandroid.database.Cursor; importandroid.widget.TextView; importandroid.content.ContentResolver; publicclassActivity01extendsActivity { publicvoidonCreate(Bundle savedInstanceState) { TextView tv=newTextView(this); String string=""; super.onCreate(sav...
The type of phone number, for example Home or Work. [Android.Runtime.Register("TYPE")] [System.Obsolete("Use 'Android.Provider.ContactsContract.IPhoneLookupColumns.Type'. This class will be removed in a future release.")] public const string Type; Field Value String Attributes RegisterAttribut...
ContactsContract.PhoneLookup:用于紧急呼叫者的ID查找。 ContactsContact.Contacts 联系人表的常熟,其中包含代表同一人的原始联系人的每个汇总的记录 操作 Insert 无法明确的创建联系人。当一条联系人数据插入的时候,provider首先去查找是否存在同一个联系人。如果找到,会从聚合表中获取联系人的CONTACT_ID。如果没有找到匹...
{Uri uri=Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI,Uri.encode(number));...
has_phone_number INTEGER NOT NULL DEFAULT 0, has_valid_sip_account INTEGER NOT NULL DEFAULT 0, lookupTEXT, contacts表格数据是系统根据raw contacts的数据进行生成和修改,这个表的数据会根据raw contacts的变化而变化,采用 将_id代表某个联系人,并将之作为索引,在某些情况下并不合适,因此引入了lookup,lookup...
LookupKey An opaque value that contains hints on how to find the contact if its row id changed as a result of a sync or aggregation. NameRawContactId Reference to the row in the RawContacts table holding the contact name. NormalizedNumber The phone number's E164 representation. Number ...
The phone number as the user entered it. C# 复制 [Android.Runtime.Register("NUMBER")] [System.Obsolete("deprecated")] public const string Number; Field Value String Attributes RegisterAttribute ObsoleteAttribute Remarks The phone number as the user entered it. Type: TEXT This member is dep...