Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

Contacts

extends Object
java.lang.Object
   ↳ android.provider.Contacts

This class was deprecated in API level 5.
The APIs have been superseded by ContactsContract . The newer APIs allow access multiple accounts and support aggregation of similar contacts. These APIs continue to work but will only return data for the first Google account created, which matches the original behavior.

Class Overview

The Contacts provider stores all information about contacts.

Summary

Nested Classes
class Contacts.ContactMethods This class was deprecated in API level 5. see ContactsContract  
interface Contacts.ContactMethodsColumns This interface was deprecated in API level 5. see ContactsContract  
class Contacts.Extensions This class was deprecated in API level 5. see ContactsContract  
interface Contacts.ExtensionsColumns This interface was deprecated in API level 5. see ContactsContract  
class Contacts.GroupMembership This class was deprecated in API level 5. see ContactsContract  
class Contacts.Groups This class was deprecated in API level 5. see ContactsContract  
interface Contacts.GroupsColumns This interface was deprecated in API level 5. see ContactsContract  
class Contacts.Intents This class was deprecated in API level 5. see ContactsContract  
interface Contacts.OrganizationColumns This interface was deprecated in API level 5. see ContactsContract  
class Contacts.Organizations This class was deprecated in API level 5. see ContactsContract  
class Contacts.People This class was deprecated in API level 5. see ContactsContract  
interface Contacts.PeopleColumns This interface was deprecated in API level 5. see ContactsContract  
class Contacts.Phones This class was deprecated in API level 5. see ContactsContract  
interface Contacts.PhonesColumns This interface was deprecated in API level 5. see ContactsContract  
class Contacts.Photos This class was deprecated in API level 5. see ContactsContract  
interface Contacts.PhotosColumns This interface was deprecated in API level 5. see ContactsContract  
interface Contacts.PresenceColumns This interface was deprecated in API level 5. see ContactsContract  
class Contacts.Settings This class was deprecated in API level 5. see ContactsContract  
interface Contacts.SettingsColumns This interface was deprecated in API level 5. see ContactsContract  
Constants
String AUTHORITY This constant was deprecated in API level 5. see ContactsContract
int KIND_EMAIL This constant was deprecated in API level 5. see ContactsContract
int KIND_IM This constant was deprecated in API level 5. see ContactsContract
int KIND_ORGANIZATION This constant was deprecated in API level 5. see ContactsContract
int KIND_PHONE This constant was deprecated in API level 5. see ContactsContract
int KIND_POSTAL This constant was deprecated in API level 5. see ContactsContract
Fields
public static final Uri CONTENT_URI This field was deprecated in API level 5. see ContactsContract
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String AUTHORITY

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

Constant Value: "contacts"

public static final int KIND_EMAIL

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

Signifies an email address row that is stored in the ContactMethods table

Constant Value: 1 (0x00000001)

public static final int KIND_IM

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

Signifies an IM address row that is stored in the ContactMethods table

Constant Value: 3 (0x00000003)

public static final int KIND_ORGANIZATION

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

Signifies an Organization row that is stored in the Organizations table

Constant Value: 4 (0x00000004)

public static final int KIND_PHONE

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

Signifies a Phone row that is stored in the Phones table

Constant Value: 5 (0x00000005)

public static final int KIND_POSTAL

Added in API level 1

This constant was deprecated in API level 5.
see ContactsContract

Signifies a postal address row that is stored in the ContactMethods table

Constant Value: 2 (0x00000002)

Fields

public static final Uri CONTENT_URI

Added in API level 1

This field was deprecated in API level 5.
see ContactsContract

The content:// style URL for this provider