for the system phone contacts, text messages, call records some of the methods of the column, really need to summarize theMy company has been doing this related projects recently, this blog will improve the 3 modules of the tool-class method 1, Query contacts table to get ContactID, through contact_id to get the data table in the corresponding information/** * Get contact information from the data table via
# Use file manipulation functions to implement contacts/*file Stream Implementation Address Book description: We usually test code input data, but once each time the program is finished, the data will be gone, such as test communicationrecord, enter a lot of information to find a place to change, it is necessary to end the program, the next time to re-enter, very troublesome right, file stream implementation ofThe advantage is that you can save our in
Next, the android content provider-content providers (1)
Contacts provider is a powerful and flexible component in Android. It manages the data in the system address book and provides external access interfaces to access and operate the system address book.
The organization chart of contacts provider is as follows:
It can be seen that the address book of the Android system is a three-tier architecture and
The functions implemented:
The binding of the SIM card
Reading contacts
Technical points:
SIM card Bindings
Get a start-up broadcast
Reading contacts
Use of Simpleadapter
Data transfer between activity
SIM card BindingsIdeas:
Create a Telephonymanager object
Contactscontract.class file to see the source code.(2) Table structureAs we said before, ContentProvider is the form of a table to store the data, the system contact is the case, generally stored in the data/data/com.android.providers.contacts/databases/ In Contacts2.db, we can look through the adb shell command line, or we can export this contacts2.db file through the SQLite tool, and here for our export.Locate the file, and then click the Export button in the upper-right corner to export the
How do I change which contacts I want to see?
By default, all contacts in the account you have added will be displayed in your contact list. However, you can filter your contact list by network. The person who is only on the network is hidden, but if you know that someone is on more than one network, that person is still visible. No matter how you filter, your favorites are not hidden, and everyone will be
To search on the contacts database, you can use the contacts. Find () method as follows:Navigator. Contacts. Find (contactfields, onsuccess, onerror, options );
This example shows the following content:
1st parameters are used to pass a set of contact fields to the method. These fields are also returned. For example, if you want a personal name, email address, or
With this article, I would like to explain how to create a searchable "contact list" Android application. With this application, users can browse through all saved contacts and search for contacts by their contact names by using the navigation buttons. The application can also display a photo of the contact, if available.
To browse the contact list, you can use the ,,> , and >> buttons.
Users who want to
Next, go to the android content providers (II) -- contacts provider to continue. Next, we will describe the top-level contacts, the contacts is the aggregate contact table, and the rawcontacts discussed earlier is the original contact table, in the architecture of the android address book, there are three layers: Aggregation
Address Book information is both important and useful data, whether it's mobile devices or desktop devices. Mac makes it easy to export address book data, whether you want to share or export an entire address book or a single contact card, OS X lets you do it quickly, and today we're going to show you how to export all your contacts.
Exporting contact information from your MAC address Book can also be thought of as a backup of your contact data, whic
the contacts in the Android system are also available through ContentProvider, where we get all the contacts, get contacts by phone number, add contacts, add contacts using transactions. Get all Contacts 1. The
MAC Address Book is a very simple Mac with app applications, MAC address Book import, I believe that almost every friend with Apple devices will use, then how to export the MAC address book contacts? Whether you want to share a contact card with someone, or you want to back up your Mac All contacts on the computer to the local, to do an export operation. The following PC6 small series to bring you the MAC A
Given that some users are not familiar with the differences between mail contacts and mail users, Bowen first introduces the concept of user mailboxes, mail contacts, mail users, and the following sections of the blog Digest from winos Microsoft Chinese Technology Forum.----------------------------------------------------------------------------------------------------- a) user mailbox : The most common sh
Today, a user called and asked how to put the distribution list of his colleagues ' contacts in his outlook for use, so he tested it and found a way.
1. Send your own contacts to others, open contacts, select the appropriate distribution list, right-click, send full contacts-in Outlook format to each other.
2. Afte
Operation Steps:
When you use an Exchange ActiveSync e-mail account (such as a outlook.com account, formerly known as Hotmail) in Outlook 2013, the steps to import a contact are different from the steps that you perform for the Exchange account.
tip: to find out if your account is an Exchange ActiveSync account, click the file---> account settings---> Account settings. Click the e-mail tab and locate your account in the Name column, and then check to see if the Type column show
After you sign in to Messenger, you can see that the contact list is empty in the main program window, and only contacts can be exchanged online. The system house below will describe how to add and manage contacts.
(1) Add a contact
1th step: After you sign in to Messenger, click the Add Contact icon in the Main program window.
Step 2nd: Eject the Add Contact dialog box, enter the contact e-m
Reading text messages and contacts is often used, to understand that this is the content provider's knowledge pointsay the text first, to get data from a database, you need to understand its structureThe following path to the SMS database in Data-->dataIts table structure is as follows, there are 3 we should pay attention toThe Java code is//Get content providerContentresolver Contentresolver =Getcontentres
The code is simple, no more nonsense.
Copy Code code as follows:
Reading contacts
public static Uri Contactsuri = contactscontract.contacts.content_uri;//Contact
public static void Getcontactsinfo (context context,string tag) {
string[] projections = new String[]{contactscontract.contacts._id,contactscontract.contacts.display_name};
Cursor Cursor = Context.getcontentresolver (). Query (Cont
In Contacts, the sorting of surnames and polyphonic words is incorrect.
When talking about Chinese names, you have to consider the problem of polyphonic words. For example, for 'singles' name, you should read them as 'shan' instead of 'dan '. however, the Contacts program uses 'D' as the bucket label!Why? How can we solve this problem?Contains the pronunciation of some Chinese characters when they are used
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.