Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

ContactsContract.DisplayNameSources

android.provider.ContactsContract.DisplayNameSources

Class Overview

Types of data used to produce the display name for a contact. In the order of increasing priority: EMAIL , PHONE , ORGANIZATION , NICKNAME , STRUCTURED_NAME .

Constants

public static final int EMAIL

Constant Value: 10 (0x0000000a)

public static final int NICKNAME

Constant Value: 35 (0x00000023)

public static final int ORGANIZATION

Constant Value: 30 (0x0000001e)

public static final int PHONE

Constant Value: 20 (0x00000014)

public static final int STRUCTURED_NAME

Constant Value: 40 (0x00000028)

public static final int UNDEFINED

Constant Value: 0 (0x00000000)