Android
android.provider
public static final class

android.provider.Contacts.ContactMethods

java.lang.Object
android.provider.Contacts.ContactMethods BaseColumns Contacts.ContactMethodsColumns Contacts.PeopleColumns

This table stores all non-phone contact methods and a reference to the person that the contact method belongs to.

Summary

Constants

      Value  
String  CONTENT_EMAIL_ITEM_TYPE  The MIME type of a CONTENT_URI sub-directory of a single KIND_EMAIL entry.  "vnd.android.cursor.item/email" 
String  CONTENT_EMAIL_TYPE  The MIME type of a CONTENT_EMAIL_URI sub-directory of\ multiple KIND_EMAIL entries.  "vnd.android.cursor.dir/email" 
Uri  CONTENT_EMAIL_URI  The content:// style URL for sub-directory of e-mail addresses.     
String  CONTENT_IM_ITEM_TYPE  The MIME type of a CONTENT_URI sub-directory of a single KIND_IM entry.  "vnd.android.cursor.item/jabber-im" 
String  CONTENT_POSTAL_ITEM_TYPE  The MIME type of a CONTENT_URI sub-directory of a single KIND_POSTAL entry.  "vnd.android.cursor.item/postal-address" 
String  CONTENT_POSTAL_TYPE  The MIME type of a CONTENT_EMAIL_URI sub-directory of\ multiple KIND_POSTAL entries.  "vnd.android.cursor.dir/postal-address" 
String  CONTENT_TYPE  The MIME type of CONTENT_URI providing a directory of phones.  "vnd.android.cursor.dir/contact-methods" 
Uri  CONTENT_URI  The content:// style URL for this table      
String  DEFAULT_SORT_ORDER  The default sort order for this table   "name ASC" 
String  PERSON_ID  The ID of the person this contact method is assigned to.  "person" 
String  POSTAL_LOCATION_LATITUDE  The column with latitude data for postal locations

Type: REAL

 
"data" 
String  POSTAL_LOCATION_LONGITUDE  The column with longitude data for postal locations

Type: REAL

 
"aux_data" 
int  PROTOCOL_AIM  The predefined IM protocol types.  0x00000000 
int  PROTOCOL_GOOGLE_TALK    0x00000005 
int  PROTOCOL_ICQ    0x00000006 
int  PROTOCOL_JABBER    0x00000007 
int  PROTOCOL_MSN    0x00000001 
int  PROTOCOL_QQ    0x00000004 
int  PROTOCOL_SKYPE    0x00000003 
int  PROTOCOL_YAHOO    0x00000002 
Constants inherited from interface android.provider.BaseColumns
Constants inherited from interface android.provider.Contacts.ContactMethodsColumns
Constants inherited from interface android.provider.Contacts.PeopleColumns

Public Methods

          void  addPostalLocation(Context context, long postalId, double latitude, double longitude)
Add a longitude and latitude location to a postal address.
      static    Object  decodeImProtocol(String encodedString)
      static    String  encodeCustomImProtocol(String protocolString)
      static    String  encodePredefinedImProtocol(int protocol)
    final  static    CharSequence  getDisplayLabel(Context context, int kind, int type, CharSequence label)
Methods inherited from class java.lang.Object

Details

Constants

public static final String CONTENT_EMAIL_ITEM_TYPE

The MIME type of a CONTENT_URI sub-directory of a single KIND_EMAIL entry.
Constant Value: "vnd.android.cursor.item/email"

public static final String CONTENT_EMAIL_TYPE

The MIME type of a CONTENT_EMAIL_URI sub-directory of\ multiple KIND_EMAIL entries.
Constant Value: "vnd.android.cursor.dir/email"

public static final Uri CONTENT_EMAIL_URI

The content:// style URL for sub-directory of e-mail addresses.

public static final String CONTENT_IM_ITEM_TYPE

The MIME type of a CONTENT_URI sub-directory of a single KIND_IM entry.
Constant Value: "vnd.android.cursor.item/jabber-im"

public static final String CONTENT_POSTAL_ITEM_TYPE

The MIME type of a CONTENT_URI sub-directory of a single KIND_POSTAL entry.
Constant Value: "vnd.android.cursor.item/postal-address"

public static final String CONTENT_POSTAL_TYPE

The MIME type of a CONTENT_EMAIL_URI sub-directory of\ multiple KIND_POSTAL entries.
Constant Value: "vnd.android.cursor.dir/postal-address"

public static final String CONTENT_TYPE

The MIME type of CONTENT_URI providing a directory of phones.
Constant Value: "vnd.android.cursor.dir/contact-methods"

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 ASC"

public static final String PERSON_ID

The ID of the person this contact method is assigned to.

Type: INTEGER (long)

Constant Value: "person"

public static final String POSTAL_LOCATION_LATITUDE

The column with latitude data for postal locations

Type: REAL

Constant Value: "data"

public static final String POSTAL_LOCATION_LONGITUDE

The column with longitude data for postal locations

Type: REAL

Constant Value: "aux_data"

public static final int PROTOCOL_AIM

The predefined IM protocol types. The protocol can either be non-present, one of these types, or a free-form string. These cases are encoded in the AUX_DATA column as: - null - pre: - custom:
Constant Value: 0 (0x00000000)

public static final int PROTOCOL_GOOGLE_TALK

Constant Value: 5 (0x00000005)

public static final int PROTOCOL_ICQ

Constant Value: 6 (0x00000006)

public static final int PROTOCOL_JABBER

Constant Value: 7 (0x00000007)

public static final int PROTOCOL_MSN

Constant Value: 1 (0x00000001)

public static final int PROTOCOL_QQ

Constant Value: 4 (0x00000004)

public static final int PROTOCOL_SKYPE

Constant Value: 3 (0x00000003)

public static final int PROTOCOL_YAHOO

Constant Value: 2 (0x00000002)

Public Methods

public void addPostalLocation(Context context, long postalId, double latitude, double longitude)

Add a longitude and latitude location to a postal address.

Parameters

context the context to use when updating the database
postalId the address to update
latitude the latitude for the address
longitude the longitude for the address

public static Object decodeImProtocol(String encodedString)

public static String encodeCustomImProtocol(String protocolString)

public static String encodePredefinedImProtocol(int protocol)

public static final CharSequence getDisplayLabel(Context context, int kind, int type, CharSequence label)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56