Recently, the contacts who are developing the Android platform are summarized and shared with you:
Parameters:
String name, contact name
String homephone, home phone number
String mobile, mobile phone
String workphone, company phone number
String workfax, Company Fax
String emailaddr, email address
String MSN,String Skype,
String QQ,
String company, company name
String position, position
String homeaddr, h
Android dial can match a contact for the first time. After the phone number is prefixed and the phone number is called, the contact cannot be matched.1: Modify ContactsProvider2.java, queryDialerSearchIncrement ().Before modification,(1). + DialerSearchLookupColumns. CALL_LOG_ID + "> 0" + "AND" + ...... about L: 9226(2). + DialerSearchLookupColumns. CALL_LOG_ID +
From: http://blog.sina.com.cn/s/blog_90cdca4c01010zm4.html
1. Add read/write permissionsContact information URI:Content: // com. Android. Contacts/contactsContact number URI:Content: // com. Android. Contacts/data/phonesContact email URI:Content: // com. Android. Contacts/data/emails(Recommended) You can also obtain the conta
.
Data1 to Data15
Universal Data Columns (information that holds contacts, contact names, contact phone numbers, e-mails, notes, and so on). The meaning of each column is determined by the type of mimetype_id. Data15 the BLOB (binary data) used for storage (storing pictures).
Data_sync1 toData_sync4
The universal column used by the synchronization adapter. For example,
default, files can only be accessed by created applications.3. database (RDBMS): SQLite method. For more information, see the usage of SQLite. It is accessed by the created application.4. Network: Android provides APIs to remotely store data on servers.
If you want to share data in an application, use Content Provider. Regardless of the data storage method, Content Provider provides a unified interface. Data will be provided in a table-like manner, w
Android mobile guard-obtains and displays contact information and ECHO, android echo
The previous article has implemented related la S. This article then implements relevant functions.
For more information, see http://www.cnblogs.com/wuyudong/p/5951794.html.
Read system contacts
After you click "select contact", the
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 Contacts1. The contacts in the Android system are also available through the ContentProvider for external data.2. The database path is:/data/data/com.android.providers.contacts/database/contacts2.db3. There are 3 tab
This article from http://blog.csdn.net/xjanker2, reference reprint must indicate the source!
In the previous article, we used the call and text message function, but we do not know the contact information. This article describes how to get the contact information of the Local Machine from Android.
Due to the rapid Android
Android study note 21. Use ContentProvider for data sharing (4). ContentProvider and androidprovider of the Operating System (contact)The Android system provides a large number of contentproviders, such as contact information and multimedia information of the system. Our developed applications mainly call the query ()
In a web project, you can dynamically add Contacts and modify them, for example:
We can see from the above four figures that the contact function on the Web can have a maximum of seven lists. After each list is selected, it can be modified, as shown in Figure D. If you select a contact, the contact cannot be selected because there is no data.
Port to
= (button) findviewbyid (R. Id. mybutton1 );/* Set onclicklistener to allow users to search for contacts when clicking the button */Mbutton01.setonclicklistener (New button. onclicklistener (){// @ OverridePublic void onclick (view V){// Todo auto-generated method stub/* Construct a URI to obtain the contact's resource location */// URI uri = URI. parse ("content: // contacts/people /");/* Use intent to retrieve contact data and return the selected v
Contacts in the Android system also provide external data through contentprovider. Here we can obtain all contacts, obtain contacts through phone numbers, add contacts, and use transactions to add Contacts.
Get all contacts
1. Contacts in the Android system provide data externally through contentprovider.
2. Database path:/data/COM. Android. providers. Contacts/d
Android Address Book Management 1 contact acquisition
As we know, Android address book and SMS management use contentprovider to Develop interfaces for developers. You must start with ContentResolver. The address book operation involves the use of the system source code api, especially on the uri of the table. In the following articles, snail mail will gradually
Today's learning task: Read the main information (name and phone number) of all contacts on the mobile phone, and display it in listview
Main Content involved: 1) structure and usage of the contact API 2) role of the contentprovider component, Uri concept and usage 3) create a listview and bind data
1. Structure and usage of the contact API
Since Android
From http://www.cnblogs.com/error404/archive/2013/03/12/2956090.html
A program for reading contact information in android, including reading the contact name, mobile phone number, and email address
1: androidmanifest. xml content
It is important to set up a test environment and add the
2: main method of reading
/** Read the
The implementation of the function is combined with many excellent implementations on the Internet. Let's look at the small optimization.
Implementation ideas:
1. Get the mobile phone contact list: query the contact list through URI uri = URI. parse ("content: // com. Android. Contacts/data/phones ").
2. There are many contac
Project Description: The project is based on the Android platform phone Address Book, the main module is divided into four parts: contact management module, call records Management module, SMS Management module, System Setup module. The system structure diagram is as follows: Project start Date: May 28, 2014 Note: All source code of this development project will be shared to everyone. The purpose of this p
/COM.ANDROID.PROVIDERS.CONTACTS/DATABASES/CONTACTS2.DB), which is a very complex table structure, There are more than 20 columns, including one named Sort_key, which is what we are looking for! As shown in the following illustration:
As you can see, this column is very humane to help us record the pinyin corresponding to the Chinese character, so that we can easily sort the contact by the value of this column.
Let's start with the implementation of
When you contact this tutorial, the method used to select a contact is to read the contact from the database, and then display it with listview. After selecting the contact, the mobile phone number is returned,
In this way, when you click to select a contact, it takes time t
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.