English | Site Directory

Android - An Open Handset Alliance Project

android.provider
public static final class

android.provider.Contacts.People

java.lang.Object
android.provider.Contacts.People BaseColumns Contacts.PeopleColumns Contacts.PhonesColumns

This table contains people.

Nested Classes
Contacts.People.ContactMethods A subdirectory of a single person that contains all of their ContactMethods. 
Contacts.People.Phones A sub directory of a single person that contains all of their Phones. 

Summary

Constants

      Value  
String  ACCOUNT  The user account information.  "account" 
int  AVAILABLE    0x00000001 
int  AWAY    0x00000003 
String  CONTENT_ITEM_TYPE  The MIME type of a CONTENT_URI subdirectory of a single person.  "vnd.android.cursor.item/person" 
String  CONTENT_TYPE  The MIME type of CONTENT_URI providing a directory of people.  "vnd.android.cursor.dir/person" 
Uri  CONTENT_URI  The content:// style URL for this table      
String  DEFAULT_SORT_ORDER  The default sort order for this table   "name COLLATE UNICODE ASC" 
Uri  DELETED_CONTENT_URI  The content:// style URL for the table that holds the deleted contacts.     
int  DO_NOT_DISTURB    0x00000004 
int  IDLE    0x00000002 
int  OFFLINE    0x00000005 
String  PREFERRED_EMAIL_ID  The ID of the persons preferred email.  "preferred_email" 
String  PREFERRED_PHONE_ID  The ID of the persons preferred phone number.  "preferred_phone" 
String  PROVIDER  The provider of the status information.  "provider" 
String  SERVER_STATUS  The server defined status.  "server_status" 
String  USER_STATUS  The user defined status line.  "user_status" 
String  _SYNC_ACCOUNT  The account that was used to sync the entry to the device.  "_sync_account" 
String  _SYNC_DIRTY  Used to indicate that local, unsynced, changes are present.  "_sync_dirty" 
String  _SYNC_ID  The unique ID for a row assigned by the sync source.  "_sync_id" 
String  _SYNC_LOCAL_ID  Used in temporary provider while syncing, always NULL for rows in persistent providers.  "_sync_local_id" 
String  _SYNC_MARK  Used only in persistent providers, and only during merging.  "_sync_mark" 
String  _SYNC_TIME  The last time, from the sync source's point of view, that this row has been synchronized.  "_sync_time" 
String  _SYNC_VERSION  The version of the row, as assigned by the server.  "_sync_version" 
Constants inherited from interface android.provider.Contacts.PeopleColumns
Constants inherited from interface android.provider.BaseColumns
Constants inherited from interface android.provider.Contacts.PhonesColumns

Public Methods

      static  void  markAsContacted(ContentResolver resolver, long personId)
Mark a person as having been contacted.
Methods inherited from class java.lang.Object

Details

Constants

public static final String ACCOUNT

The user account information.

Type: TEXT

Constant Value: "account"

public static final int AVAILABLE

Constant Value: 1 (0x00000001)

public static final int AWAY

Constant Value: 3 (0x00000003)

public static final String CONTENT_ITEM_TYPE

The MIME type of a CONTENT_URI subdirectory of a single person.
Constant Value: "vnd.android.cursor.item/person"

public static final String CONTENT_TYPE

The MIME type of CONTENT_URI providing a directory of people.
Constant Value: "vnd.android.cursor.dir/person"

public static final Uri CONTENT_URI

The content:// style URL for this table

public static final String DEFAULT_SORT_ORDER

The default sort order for this table
Constant Value: "name COLLATE UNICODE ASC"

public static final Uri DELETED_CONTENT_URI

The content:// style URL for the table that holds the deleted contacts.

public static final int DO_NOT_DISTURB

Constant Value: 4 (0x00000004)

public static final int IDLE

Constant Value: 2 (0x00000002)

public static final int OFFLINE

Constant Value: 5 (0x00000005)

public static final String PREFERRED_EMAIL_ID

The ID of the persons preferred email.

Type: INTEGER (foreign key to contact_methods table on the _ID field)

Constant Value: "preferred_email"

public static final String PREFERRED_PHONE_ID

The ID of the persons preferred phone number.

Type: INTEGER (foreign key to phones table on the _ID field)

Constant Value: "preferred_phone"

public static final String PROVIDER

The provider of the status information.

Type: TEXT

Constant Value: "provider"

public static final String SERVER_STATUS

The server defined status.

Type: INTEGER (one of the values below)

Constant Value: "server_status"

public static final String USER_STATUS

The user defined status line.

Type: TEXT

Constant Value: "user_status"

public static final String _SYNC_ACCOUNT

The account that was used to sync the entry to the device.

Type: TEXT

Constant Value: "_sync_account"

public static final String _SYNC_DIRTY

Used to indicate that local, unsynced, changes are present.

Type: INTEGER (long)

Constant Value: "_sync_dirty"

public static final String _SYNC_ID

The unique ID for a row assigned by the sync source. NULL if the row has never been synced.

Type: TEXT

Constant Value: "_sync_id"

public static final String _SYNC_LOCAL_ID

Used in temporary provider while syncing, always NULL for rows in persistent providers.

Type: INTEGER (long)

Constant Value: "_sync_local_id"

public static final String _SYNC_MARK

Used only in persistent providers, and only during merging.

Type: INTEGER (long)

Constant Value: "_sync_mark"

public static final String _SYNC_TIME

The last time, from the sync source's point of view, that this row has been synchronized.

Type: INTEGER (long)

Constant Value: "_sync_time"

public static final String _SYNC_VERSION

The version of the row, as assigned by the server.

Type: TEXT

Constant Value: "_sync_version"

Public Methods

public static void markAsContacted(ContentResolver resolver, long personId)

Mark a person as having been contacted.

Parameters

resolver the ContentResolver to use
personId the person who was contacted
Build m5-rc15i - 10 Jun 2008 13:54