In many cases, we have to use the operations of selecting contacts. It is very troublesome to write it by ourselves. Instead, it is better to directly call the system's address book.
Let's look at the requirements below:
Requirements:When an edittext button is clicked, go to the system address book. Select one address book item and return it to the current interface.The username of the selected contact number is displayed on edittext.
I once met a student at Peking University and asked me, "Teacher, do you say learning is important, or do you have business contacts ?" Looking at his face, I took out my notebook and noted down the problem. Then I told him that this is a big topic. I will write an article carefully on the Internet, then I gave him my blog address. Then I added, "Believe me, even if the so-called contacts are important, the
source code directory
A. Compile the SDK
# Make product-SDK
After the SDK is compiled, in the out/host/linux-x86/SDK/android-sdk_eng.xxx_linux-x86, pay attention to remove it, it is better to clear it next time Mmm Compilation
B. Compile the application module: less contact
. Build/envsetup. Sh
Mmm packages/apps/contacts
$ Make Snod
Regenerate system. IMG and run the simulator: emulator
// Not required. It can be created through
A rawcontacts corresponds to a contact.You can use the following statement to query:C = resolver. Query (rawcontacts. content_uri,New String [] {rawcontacts. contact_id },Rawcontacts. _ ID + "=" + mainrawcontactid, null, null );Contacts is the aggregat of rawcontacts.A contacts contains multiple rawcontacts (but only link ).You can use the following statement to query:Cursor c = resolver. Query (rawcontacts
Use of Android open-source class library Pinyin4j ---- search contacts
Pinyin4j can only be regarded as a Java open source class library, but it is also frequently used in Android application development. You have used mobile phone address book and address book to search for contacts. You can use pinyin4j. The following example shows how to use pinyin4j to search for co
No contacts can be found after an automatic MCCMNC number is added to android.Because different sim cards correspond to different mccmnc, the value of min_match changes,The new min_match value is inconsistent with the min_match saved in the previous phone_lookup table, and thus cannot be matched. Modify as follows:1. Add URIModify ContactsProvider2.java,Private static final int PHONE_LOOKUP = 4000;Add a line below:Private static final int PHONE_LOOKUP
attachments in the attachments attribute.
Finally, we call the send method.
4,Contact,AppointmentAndTask
Windows Mobile has three important programs: contacts, appointments, and tasks.
We can use the Microsoft. windowsmobile. pocketoutlook class library to call contacts, appointments, and task information in the system. We can add information through our own program.
Let's take a look at an important cla
How do I search for my contacts?
Here are some quick ways to get specific contacts:
search
NBSP;
(If you use the mouse, point to the upper-right corner of the screen, then move the pointer down, and then click Search.)
NBSP;
Click or click the letter that matches the person you are
PINYIN4J is only a Java open source class library, but it is often used in Android application development. Everyone has used the phone's address book, contacts of the search contact function, with pinyin4j can be achieved. Here I give you this example, using pinyin4j to implement the search contact function.First, a simple introduction to pinyin4j:Pinyin4j is a popular Java library, supporting the conversion between Chinese characters and pinyin, pin
Some features part of the phone can not be used, website, contacts, WiFi basically every mobile phone is available.Before you look, you can sweep the following two-dimensional code to see the effect:1. Two-D code generation URL (URL)Contains the URL of the two-dimensional code generation is the most common contact (for example:http://dnt.dkill.net), QR code recognition software can be known by http://prefix to know that the data represents a Web addre
There are many examples of online Android contact list, and the contact person is similar, because the project used the Contact List index function (the product to remove the letter item), but also good implementation, here I also share my implementation, lest later forget, that first look at the effect (demo at the end of it):The effect is so simple.Let's talk first: Add a pinyin field to the contact object first, and when you get the contact raw data, convert the name of each contact to pinyin
following line to display a Edit button in the navigation bar for this view controller.Self.navigationItem.rightBarButtonItem = Self.editbuttonitem;InitializationSelf.addressbooktemp = [Nsmutablearray array];Create a new Address BookAbaddressbookref addressbooks = nil;if ([[Uidevice currentdevice].systemversion Floatvalue] >= 6.0){Addressbooks = abaddressbookcreatewithoptions (null, NULL);Get Address Book permissionsdispatch_semaphore_t sema = dispatch_semaphore_create (0);Abaddressbookrequesta
On the iOS side can be implemented via addressbook or Addressbookui two frames, the difference is the second frame with a view, the general use of the first frame is enough.The following describes the use of the AddressBook framework, note that this is a C language framework, the use of more trouble.① Request AuthorizationThe authorization status is determined first, and authorization is granted if it is not authorized.1. Active request authorization, first determine the authorization status Nsi
A. Get contact informationClick to get contact informationpublic void Click (View view) {Get Content ParserContentresolver resolver = Getcontentresolver ();Set the URI of the access (System native)Uri uri = uri.parse ("content://com.android.contacts/raw_contacts");//ID of the contactUri Datauri = Uri.parse ("Content://com.android.contacts/data");//Contact informationQuery the ID of all contactsCursor idcursor = Resolver.query (URI, new string[]{"contact_id"}, NULL, NULL, NULL);while (Idcursor.mo
[Android] mobile guard reads contacts, android guard
Obtains the ContentResolver content parser object through the getContentResolver () method.
Call the query () method of the ContentResolver object to obtain the data in the raw_contacts table and obtain the Cursor object.
Parameter: Uri object, field String Array
Obtain the Uri object by using the Uri. parse ("content: // com. android. contacts/raw_conta
I haven't come to the blog Park for a long time. I 've been busy working and learning. Today, I shared my encapsulated class libraries for getting MSN friend information, including gmai.com, yahoo.cn, yahoo.com.cn, live.cn, live.com, and hotmail.com email contacts.
In fact, there is no technical content, but I found several Class Libraries for a long time at work. To make it easy to use, I made it into a class library. Provides the mail group func
1. In the mobile phone we find the "contact" icon, click to enter.
2. Then we then click on the "menu"-"Contact person to display" as shown in the following figure.
3. Finally, we just click on "All Contacts", as shown in the following figure will show all the contacts.
When you are done, you can display all of your contacts.
Assign a bell tone to the contact according to the following steps:1. Click contacts on the standby screen ].2. Select group ].3. Select the specified group, and click and hold.4. Select edit Group ].5. Select [ringtone ].6. Select [ringtones ].7. Select the specified [ringtone ].8. Select confirm ].Note:You can only assign groups to contacts stored on your mobile phone (non-SIM/Google contacts.Note:For Goo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.