Android get contacts, small summary

Source: Internet
Author: User

These days are going to learn something handy for Android contacts, slightly involved before, but each time is a little bit.

Recommended domestic Two link:

http://fanfq.iteye.com/blog/779569

http://www.icodelogic.com/?p=453

Two are read contacts, but the first link using multiple queries, a better understanding, but the efficiency of the bottom. 250 Records (6s)

The second link uses the querying entities, which returns the data set, greatly reducing the number of queries. 250 Records (200MS) The reason I think it should be the latter employs transactions, saving overhead.

Google has a more detailed contacts of the textbook, also talked about to querying entities:http://developer.android.com/intl/zh-cn/guide/topics/providers /contacts-provider.html

Recommended "Android-savvy" book Introduction is also good

According to the first two link, make a demo, for everyone's reference and criticism:

Http://files.cnblogs.com/files/FightForFreedom/ContactsDataBase.zip

Android get contacts, small summary

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.