to top
Android APIs
public static final class

Contacts.ContactMethods

extends Object
implements BaseColumns Contacts.ContactMethodsColumns Contacts.PeopleColumns
java.lang.Object
   ↳ android.provider.Contacts.ContactMethods

This class is deprecated.
see ContactsContract

Class Overview

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

Summary

Constants
String CONTENT_EMAIL_ITEM_TYPE This constant is deprecated. see ContactsContract
String CONTENT_EMAIL_TYPE This constant is deprecated. see ContactsContract
String CONTENT_IM_ITEM_TYPE This constant is deprecated. see ContactsContract
String CONTENT_POSTAL_ITEM_TYPE This constant is deprecated. see ContactsContract
String CONTENT_POSTAL_TYPE This constant is deprecated. see ContactsContract
String CONTENT_TYPE This constant is deprecated. see ContactsContract phones.
String DEFAULT_SORT_ORDER This constant is deprecated. see ContactsContract
String PERSON_ID This constant is deprecated. see ContactsContract
String POSTAL_LOCATION_LATITUDE This constant is deprecated. see ContactsContract
String POSTAL_LOCATION_LONGITUDE This constant is deprecated. see ContactsContract
int PROTOCOL_AIM This constant is deprecated. see ContactsContract
int PROTOCOL_GOOGLE_TALK This constant is deprecated. see ContactsContract
int PROTOCOL_ICQ This constant is deprecated. see ContactsContract
int PROTOCOL_JABBER This constant is deprecated. see ContactsContract
int PROTOCOL_MSN This constant is deprecated. see ContactsContract
int PROTOCOL_QQ This constant is deprecated. see ContactsContract
int PROTOCOL_SKYPE This constant is deprecated. see ContactsContract
int PROTOCOL_YAHOO This constant is deprecated. see ContactsContract
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
From interface android.provider.Contacts.ContactMethodsColumns
From interface android.provider.Contacts.PeopleColumns
Fields
public static final Uri CONTENT_EMAIL_URI This field is deprecated. see ContactsContract
public static final Uri CONTENT_URI This field is deprecated. see ContactsContract
Public Methods
void addPostalLocation(Context context, long postalId, double latitude, double longitude)
This method is deprecated. see ContactsContract
static Object decodeImProtocol(String encodedString)
This method is deprecated. see ContactsContract
static String encodeCustomImProtocol(String protocolString)
This method is deprecated. see ContactsContract
static String encodePredefinedImProtocol(int protocol)
This method is deprecated. see ContactsContract
final static CharSequence getDisplayLabel(Context context, int kind, int type, CharSequence label)
This method is deprecated. see ContactsContract
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONTENT_EMAIL_ITEM_TYPE

Since: API Level 1

This constant is deprecated.
see ContactsContract

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

Since: API Level 1

This constant is deprecated.
see ContactsContract

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 String CONTENT_IM_ITEM_TYPE

Since: API Level 1

This constant is deprecated.
see ContactsContract

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

Since: API Level 1

This constant is deprecated.
see ContactsContract

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

Since: API Level 1

This constant is deprecated.
see ContactsContract

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

Since: API Level 1

This constant is deprecated.
see ContactsContract phones.

The MIME type of CONTENT_URI providing a directory of

Constant Value: "vnd.android.cursor.dir/contact-methods"

public static final String DEFAULT_SORT_ORDER

Since: API Level 1

This constant is deprecated.
see ContactsContract

The default sort order for this table

Constant Value: "name ASC"

public static final String PERSON_ID

Since: API Level 1

This constant is deprecated.
see ContactsContract

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

Type: INTEGER (long)

Constant Value: "person"

public static final String POSTAL_LOCATION_LATITUDE

Since: API Level 1

This constant is deprecated.
see ContactsContract

The column with latitude data for postal locations

Type: REAL

Constant Value: "data"

public static final String POSTAL_LOCATION_LONGITUDE

Since: API Level 1

This constant is deprecated.
see ContactsContract

The column with longitude data for postal locations

Type: REAL

Constant Value: "aux_data"

public static final int PROTOCOL_AIM

Since: API Level 1

This constant is deprecated.
see ContactsContract

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

Since: API Level 1

This constant is deprecated.
see ContactsContract

Constant Value: 5 (0x00000005)

public static final int PROTOCOL_ICQ

Since: API Level 1

This constant is deprecated.
see ContactsContract

Constant Value: 6 (0x00000006)

public static final int PROTOCOL_JABBER

Since: API Level 1

This constant is deprecated.
see ContactsContract

Constant Value: 7 (0x00000007)

public static final int PROTOCOL_MSN

Since: API Level 1

This constant is deprecated.
see ContactsContract

Constant Value: 1 (0x00000001)

public static final int PROTOCOL_QQ

Since: API Level 1

This constant is deprecated.
see ContactsContract

Constant Value: 4 (0x00000004)

public static final int PROTOCOL_SKYPE

Since: API Level 1

This constant is deprecated.
see ContactsContract

Constant Value: 3 (0x00000003)

public static final int PROTOCOL_YAHOO

Since: API Level 1

This constant is deprecated.
see ContactsContract

Constant Value: 2 (0x00000002)

Fields

public static final Uri CONTENT_EMAIL_URI

Since: API Level 1

This field is deprecated.
see ContactsContract

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

public static final Uri CONTENT_URI

Since: API Level 1

This field is deprecated.
see ContactsContract

The content:// style URL for this table

Public Methods

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

Since: API Level 1

This method is deprecated.
see ContactsContract

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)

Since: API Level 1

This method is deprecated.
see ContactsContract

public static String encodeCustomImProtocol (String protocolString)

Since: API Level 1

This method is deprecated.
see ContactsContract

public static String encodePredefinedImProtocol (int protocol)

Since: API Level 1

This method is deprecated.
see ContactsContract

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

Since: API Level 1

This method is deprecated.
see ContactsContract