English | Site Directory

Android - An Open Handset Alliance Project

android.provider
public class

android.provider.Contacts

java.lang.Object
android.provider.Contacts

The Contacts provider stores all information about contacts.

Nested Classes
Contacts.ContactMethods This table stores all non-phone contact methods and a reference to the person that the contact method belongs to. 
Contacts.ContactMethodsColumns Columns from the ContactMethods table that other tables join into themseleves. 
Contacts.Intents Contains helper classes used to create or manage Intents that involve contacts. 
Contacts.People This table contains people. 
Contacts.PeopleColumns Columns from the People table that other tables join into themselves. 
Contacts.Phones This table stores phone numbers and a reference to the person that the contact method belongs to. 
Contacts.PhonesColumns Columns from the Phones table that other columns join into themselves. 

Summary

Constants

      Value  
String  AUTHORITY    "contacts" 
Uri  CONTENT_URI  The content:// style URL for this provider      

Public Methods

      static  boolean  mergeContacts(ContentResolver cr, long mergeSourceId, long mergeTargetId)
Merges the contacts from the source to the target, then deletes the source.
Methods inherited from class java.lang.Object

Details

Constants

public static final String AUTHORITY

Constant Value: "contacts"

public static final Uri CONTENT_URI

The content:// style URL for this provider

Public Methods

public static boolean mergeContacts(ContentResolver cr, long mergeSourceId, long mergeTargetId)

Merges the contacts from the source to the target, then deletes the source.

Parameters

cr the ContentResolver to use to access the data store
mergeSourceId the rowId of the contact to merge from
mergeTargetId the rowId of the contact to merge to

Returns

  • true, if the merge was successful
Build m5-rc15i - 10 Jun 2008 13:54