O'Reilly logo

Pro Android 3 by Sayed Y. Hashimi, Dave MacLean, Satya Komatineni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 27. Exploring the Contacts API

In Chapter 4, which covered content providers, we listed the benefits of exposing data through content provider abstraction and showed that such abstracted data is exposed as a series of URLs that can be used to read, query, update, insert, and delete. These URLs and their corresponding cursors become the API for that content provider.

The Contact API is one such content provider API for working with the contact data. Contacts in Android are maintained in a database and exposed through a content provider whose authority is rooted at

content://com.android.contacts

The Android SDK documents the various contracts offered by this contact content provider using a set of java interfaces and classes that are rooted ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required