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.Phones#constants) \| [Inherited Constants](https://developer.android.com/reference/android/provider/Contacts.Phones#inhconstants) \| [Fields](https://developer.android.com/reference/android/provider/Contacts.Phones#lfields) \| [Methods](https://developer.android.com/reference/android/provider/Contacts.Phones#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/Contacts.Phones#inhmethods)

# Contacts.Phones

*** ** * ** ***


`
public
static
final

class
Contacts.Phones
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/provider/BaseColumns,

https://developer.android.com/reference/android/provider/Contacts.PeopleColumns,

https://developer.android.com/reference/android/provider/Contacts.PhonesColumns


`

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

<br />

*** ** * ** ***


**This class was deprecated
in API level 5.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

This table stores phone numbers and a reference to the person that the
contact method belongs to. Phone numbers are stored separately from
other contact methods to make caller ID lookup more efficient.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.Phones#CONTENT_ITEM_TYPE` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.Phones#CONTENT_TYPE` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.Phones#DEFAULT_SORT_ORDER` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/Contacts.Phones#PERSON_ID` *This constant is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

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

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/Contacts.Phones#CONTENT_FILTER_URL` *This field is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/Contacts.Phones#CONTENT_URI` *This field is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/provider/Contacts.Phones#getDisplayLabel(android.content.Context,%20int,%20java.lang.CharSequence,%20java.lang.CharSequence[])(https://developer.android.com/reference/android/content/Context context, int type, https://developer.android.com/reference/java/lang/CharSequence label, https://developer.android.com/reference/java/lang/CharSequence labelArray) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |
| ` static https://developer.android.com/reference/java/lang/CharSequence` | ` https://developer.android.com/reference/android/provider/Contacts.Phones#getDisplayLabel(android.content.Context,%20int,%20java.lang.CharSequence)(https://developer.android.com/reference/android/content/Context context, int type, https://developer.android.com/reference/java/lang/CharSequence label) ` *This method is deprecated. see `https://developer.android.com/reference/android/provider/ContactsContract`* |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` 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 https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` 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` | ` 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` | ` 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_ITEM_TYPE

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

```
public static final String CONTENT_ITEM_TYPE
```


**This constant is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The MIME type of a `https://developer.android.com/reference/android/provider/Contacts.Phones#CONTENT_URI` subdirectory of a single
phone.

<br />

Constant Value:

"vnd.android.cursor.item/phone"


### CONTENT_TYPE

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

```
public static final String CONTENT_TYPE
```


**This constant is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The MIME type of `https://developer.android.com/reference/android/provider/Contacts.Phones#CONTENT_URI` providing a directory of
phones.

<br />

Constant Value:

"vnd.android.cursor.dir/phone"


### 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
```


**This constant is deprecated.**   

see `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
```


**This constant is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The ID of the person this phone number is assigned to.

Type: INTEGER (long)

<br />

<br />

Constant Value:

"person"


## Fields

### CONTENT_FILTER_URL

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

```
public static final Uri CONTENT_FILTER_URL
```


**This field is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The content:// style URL for filtering phone numbers

<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
```


**This field is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

The content:// style URL for this table

<br />

## Public methods

### getDisplayLabel

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

```
public static CharSequence getDisplayLabel (Context context, 
                int type, 
                CharSequence label, 
                CharSequence[] labelArray)
```


**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

<br />

<br />

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

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | <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 type, 
                CharSequence label)
```


**This method is deprecated.**   

see `https://developer.android.com/reference/android/provider/ContactsContract`

<br />

<br />

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

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence` | <br /> |