# Contacts.ContactMethods

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Constants](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#constants)\|[Inherited Constants](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#inhconstants)\|[Fields](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#lfields)\|[Methods](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#inhmethods)  

# Contacts.ContactMethods

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods "View this page in Kotlin")\|Java

`
public
static
final

class
Contacts.ContactMethods
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns)`,

`[Contacts.ContactMethodsColumns](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns)`,

`[Contacts.PeopleColumns](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns)`


`

|---|------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.Contacts.ContactMethods |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 5.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

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

## Summary

|                                                                                                                                                                ### Constants                                                                                                                                                                ||
|--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_EMAIL_ITEM_TYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_ITEM_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*     |
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_EMAIL_TYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*               |
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_IM_ITEM_TYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_IM_ITEM_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*           |
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_POSTAL_ITEM_TYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_POSTAL_ITEM_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*   |
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_POSTAL_TYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_POSTAL_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*             |
| [String](https://developer.android.com/reference/java/lang/String) | [CONTENT_TYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)phones.*                    |
| [String](https://developer.android.com/reference/java/lang/String) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#DEFAULT_SORT_ORDER) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*               |
| [String](https://developer.android.com/reference/java/lang/String) | [PERSON_ID](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PERSON_ID) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                 |
| [String](https://developer.android.com/reference/java/lang/String) | [POSTAL_LOCATION_LATITUDE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#POSTAL_LOCATION_LATITUDE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*   |
| [String](https://developer.android.com/reference/java/lang/String) | [POSTAL_LOCATION_LONGITUDE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#POSTAL_LOCATION_LONGITUDE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* |
| `int`                                                              | [PROTOCOL_AIM](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_AIM) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                           |
| `int`                                                              | [PROTOCOL_GOOGLE_TALK](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_GOOGLE_TALK) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*           |
| `int`                                                              | [PROTOCOL_ICQ](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_ICQ) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                           |
| `int`                                                              | [PROTOCOL_JABBER](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_JABBER) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                     |
| `int`                                                              | [PROTOCOL_MSN](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_MSN) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                           |
| `int`                                                              | [PROTOCOL_QQ](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_QQ) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                             |
| `int`                                                              | [PROTOCOL_SKYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_SKYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                       |
| `int`                                                              | [PROTOCOL_YAHOO](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#PROTOCOL_YAHOO) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                       |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.provider.BaseColumns](https://developer.android.com/reference/android/provider/BaseColumns) |--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [_COUNT](https://developer.android.com/reference/android/provider/BaseColumns#_COUNT) The count of rows in a directory. | | [String](https://developer.android.com/reference/java/lang/String) | [_ID](https://developer.android.com/reference/android/provider/BaseColumns#_ID) The unique ID for a row.                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| From interface[android.provider.Contacts.ContactMethodsColumns](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns) |--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [AUX_DATA](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#AUX_DATA) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*       | | [String](https://developer.android.com/reference/java/lang/String) | [DATA](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#DATA) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*               | | [String](https://developer.android.com/reference/java/lang/String) | [ISPRIMARY](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#ISPRIMARY) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*     | | [String](https://developer.android.com/reference/java/lang/String) | [KIND](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#KIND) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*               | | [String](https://developer.android.com/reference/java/lang/String) | [LABEL](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#LABEL) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*             | | [String](https://developer.android.com/reference/java/lang/String) | [TYPE](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#TYPE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*               | | `int`                                                              | [TYPE_CUSTOM](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#TYPE_CUSTOM) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* | | `int`                                                              | [TYPE_HOME](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#TYPE_HOME) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*     | | `int`                                                              | [TYPE_OTHER](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#TYPE_OTHER) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*   | | `int`                                                              | [TYPE_WORK](https://developer.android.com/reference/android/provider/Contacts.ContactMethodsColumns#TYPE_WORK) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*     |                                                                                                                     |
| From interface[android.provider.Contacts.PeopleColumns](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns) |--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://developer.android.com/reference/java/lang/String) | [CUSTOM_RINGTONE](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#CUSTOM_RINGTONE) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*             | | [String](https://developer.android.com/reference/java/lang/String) | [DISPLAY_NAME](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#DISPLAY_NAME) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                   | | [String](https://developer.android.com/reference/java/lang/String) | [LAST_TIME_CONTACTED](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#LAST_TIME_CONTACTED) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*     | | [String](https://developer.android.com/reference/java/lang/String) | [NAME](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#NAME) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                   | | [String](https://developer.android.com/reference/java/lang/String) | [NOTES](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#NOTES) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                 | | [String](https://developer.android.com/reference/java/lang/String) | [PHONETIC_NAME](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#PHONETIC_NAME) *This constant was deprecated in API level 5. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* | | [String](https://developer.android.com/reference/java/lang/String) | [PHOTO_VERSION](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#PHOTO_VERSION) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                 | | [String](https://developer.android.com/reference/java/lang/String) | [SEND_TO_VOICEMAIL](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#SEND_TO_VOICEMAIL) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*         | | [String](https://developer.android.com/reference/java/lang/String) | [STARRED](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#STARRED) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                             | | [String](https://developer.android.com/reference/java/lang/String) | [TIMES_CONTACTED](https://developer.android.com/reference/android/provider/Contacts.PeopleColumns#TIMES_CONTACTED) *This constant is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*             | |

|                                                                                                                                                                 ### Fields                                                                                                                                                                  ||
|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_EMAIL_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI) *This field is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* |
| ` public static final `[Uri](https://developer.android.com/reference/android/net/Uri) | [CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_URI) *This field is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*             |

|                                                                                                                                                                                                                                                                                                  ### Public methods                                                                                                                                                                                                                                                                                                  ||
|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                                  | ` `[addPostalLocation](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#addPostalLocation(android.content.Context,%20long,%20double,%20double))`(`[Context](https://developer.android.com/reference/android/content/Context)` context, long postalId, double latitude, double longitude) ` *This method is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                                                   |
| ` static `[Object](https://developer.android.com/reference/java/lang/Object)             | ` `[decodeImProtocol](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#decodeImProtocol(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` encodedString) ` *This method is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                                                                                                                                            |
| ` static `[String](https://developer.android.com/reference/java/lang/String)             | ` `[encodeCustomImProtocol](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#encodeCustomImProtocol(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` protocolString) ` *This method is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                                                                                                                               |
| ` static `[String](https://developer.android.com/reference/java/lang/String)             | ` `[encodePredefinedImProtocol](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#encodePredefinedImProtocol(int))`(int protocol) ` *This method is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)*                                                                                                                                                                                                                           |
| ` static `[CharSequence](https://developer.android.com/reference/java/lang/CharSequence) | ` `[getDisplayLabel](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#getDisplayLabel(android.content.Context,%20int,%20int,%20java.lang.CharSequence))`(`[Context](https://developer.android.com/reference/android/content/Context)` context, int kind, int type, `[CharSequence](https://developer.android.com/reference/java/lang/CharSequence)` label) ` *This method is deprecated. see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)* |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### CONTENT_EMAIL_ITEM_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CONTENT_EMAIL_ITEM_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The MIME type of a[CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_URI)sub-directory of a single[Contacts.KIND_EMAIL](https://developer.android.com/reference/android/provider/Contacts#KIND_EMAIL)entry.

<br />

Constant Value: "vnd.android.cursor.item/email"  

### CONTENT_EMAIL_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CONTENT_EMAIL_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The MIME type of a[CONTENT_EMAIL_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI)sub-directory of multiple[Contacts.KIND_EMAIL](https://developer.android.com/reference/android/provider/Contacts#KIND_EMAIL)entries.

<br />

Constant Value: "vnd.android.cursor.dir/email"  

### CONTENT_IM_ITEM_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CONTENT_IM_ITEM_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The MIME type of a[CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_URI)sub-directory of a single[Contacts.KIND_IM](https://developer.android.com/reference/android/provider/Contacts#KIND_IM)entry.

<br />

Constant Value: "vnd.android.cursor.item/jabber-im"  

### CONTENT_POSTAL_ITEM_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CONTENT_POSTAL_ITEM_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The MIME type of a[CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_URI)sub-directory of a single[Contacts.KIND_POSTAL](https://developer.android.com/reference/android/provider/Contacts#KIND_POSTAL)entry.

<br />

Constant Value: "vnd.android.cursor.item/postal-address"  

### CONTENT_POSTAL_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CONTENT_POSTAL_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The MIME type of a[CONTENT_EMAIL_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI)sub-directory of multiple[Contacts.KIND_POSTAL](https://developer.android.com/reference/android/provider/Contacts#KIND_POSTAL)entries.

<br />

Constant Value: "vnd.android.cursor.dir/postal-address"  

### CONTENT_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String CONTENT_TYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)phones.

The MIME type of[CONTENT_URI](https://developer.android.com/reference/android/provider/Contacts.ContactMethods#CONTENT_URI)providing a directory of

<br />

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

### DEFAULT_SORT_ORDER

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String DEFAULT_SORT_ORDER
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The default sort order for this table

<br />

Constant Value: "name ASC"  

### PERSON_ID

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String PERSON_ID
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

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

Type: INTEGER (long)

<br />

<br />

Constant Value: "person"  

### POSTAL_LOCATION_LATITUDE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String POSTAL_LOCATION_LATITUDE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The column with latitude data for postal locations

Type: REAL

<br />

<br />

Constant Value: "data"  

### POSTAL_LOCATION_LONGITUDE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String POSTAL_LOCATION_LONGITUDE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The column with longitude data for postal locations

Type: REAL

<br />

<br />

Constant Value: "aux_data"  

### PROTOCOL_AIM

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_AIM
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/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:

<br />

Constant Value: 0 (0x00000000)  

### PROTOCOL_GOOGLE_TALK

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_GOOGLE_TALK
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: 5 (0x00000005)  

### PROTOCOL_ICQ

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_ICQ
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: 6 (0x00000006)  

### PROTOCOL_JABBER

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_JABBER
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: 7 (0x00000007)  

### PROTOCOL_MSN

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_MSN
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: 1 (0x00000001)  

### PROTOCOL_QQ

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_QQ
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: 4 (0x00000004)  

### PROTOCOL_SKYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_SKYPE
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: 3 (0x00000003)  

### PROTOCOL_YAHOO

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int PROTOCOL_YAHOO
```

<br />

**This constant is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

Constant Value: 2 (0x00000002)

## Fields

### CONTENT_EMAIL_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_EMAIL_URI
```

<br />

**This field is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

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

<br />

### CONTENT_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Uri CONTENT_URI
```

<br />

**This field is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

The content:// style URL for this table

<br />

## Public methods

### addPostalLocation

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

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

<br />

**This method is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

Add a longitude and latitude location to a postal address.

<br />

|                                  Parameters                                  ||
|-------------|-----------------------------------------------------------------|
| `context`   | `Context`: the context to use when updating the database <br /> |
| `postalId`  | `long`: the address to update <br />                            |
| `latitude`  | `double`: the latitude for the address <br />                   |
| `longitude` | `double`: the longitude for the address <br />                  |

### decodeImProtocol

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static Object decodeImProtocol (String encodedString)
```

<br />

**This method is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

|            Parameters            ||
|-----------------|-----------------|
| `encodedString` | `String` <br /> |

|                                  Returns                                   ||
|--------------------------------------------------------------------|--------|
| [Object](https://developer.android.com/reference/java/lang/Object) | <br /> |

### encodeCustomImProtocol

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static String encodeCustomImProtocol (String protocolString)
```

<br />

**This method is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

|            Parameters             ||
|------------------|-----------------|
| `protocolString` | `String` <br /> |

|                                  Returns                                   ||
|--------------------------------------------------------------------|--------|
| [String](https://developer.android.com/reference/java/lang/String) | <br /> |

### encodePredefinedImProtocol

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static String encodePredefinedImProtocol (int protocol)
```

<br />

**This method is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

|        Parameters        ||
|------------|--------------|
| `protocol` | `int` <br /> |

|                                  Returns                                   ||
|--------------------------------------------------------------------|--------|
| [String](https://developer.android.com/reference/java/lang/String) | <br /> |

### getDisplayLabel

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

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

<br />

**This method is deprecated.**   
see[ContactsContract](https://developer.android.com/reference/android/provider/ContactsContract)

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `kind`    | `int` <br />          |
| `type`    | `int` <br />          |
| `label`   | `CharSequence` <br /> |

|                                        Returns                                         ||
|--------------------------------------------------------------------------------|--------|
| [CharSequence](https://developer.android.com/reference/java/lang/CharSequence) | <br /> |