Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Contacts\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nContacts\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/Contacts \"View this page in Java\") \n\n```\nopen class Contacts\n```\n\n|---|--------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.Contacts](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 5.**\n|\n| The APIs have been superseded by [ContactsContract](/reference/kotlin/android/provider/ContactsContract). The newer APIs allow access multiple accounts and support aggregation of similar contacts. These APIs continue to work but will only return data for the first Google account created, which matches the original behavior.\n\nThe Contacts provider stores all information about contacts.\n\nSummary\n-------\n\n| Nested classes ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [ContactMethods](/reference/kotlin/android/provider/Contacts.ContactMethods) This table stores all non-phone contact methods and a reference to the person that the contact method belongs to. |\n| abstract | [ContactMethodsColumns](/reference/kotlin/android/provider/Contacts.ContactMethodsColumns) Columns from the ContactMethods table that other tables join into themseleves. |\n| | [Extensions](/reference/kotlin/android/provider/Contacts.Extensions) The extensions for a person |\n| abstract | [ExtensionsColumns](/reference/kotlin/android/provider/Contacts.ExtensionsColumns) \u003cbr /\u003e |\n| | [GroupMembership](/reference/kotlin/android/provider/Contacts.GroupMembership) \u003cbr /\u003e |\n| | [Groups](/reference/kotlin/android/provider/Contacts.Groups) This table contains the groups for an account. |\n| abstract | [GroupsColumns](/reference/kotlin/android/provider/Contacts.GroupsColumns) Columns from the groups table. |\n| | [Intents](/reference/kotlin/android/provider/Contacts.Intents) Contains helper classes used to create or manage [Intents](../content/Intent.html#) that involve contacts. |\n| abstract | [OrganizationColumns](/reference/kotlin/android/provider/Contacts.OrganizationColumns) Columns from the Organizations table that other columns join into themselves. |\n| | [Organizations](/reference/kotlin/android/provider/Contacts.Organizations) A sub directory of a single person that contains all of their Phones. |\n| | [People](/reference/kotlin/android/provider/Contacts.People) This table contains people. |\n| abstract | [PeopleColumns](/reference/kotlin/android/provider/Contacts.PeopleColumns) Columns from the People table that other tables join into themselves. |\n| | [Phones](/reference/kotlin/android/provider/Contacts.Phones) This table stores phone numbers and a reference to the person that the contact method belongs to. |\n| abstract | [PhonesColumns](/reference/kotlin/android/provider/Contacts.PhonesColumns) Columns from the Phones table that other columns join into themselves. |\n| | [Photos](/reference/kotlin/android/provider/Contacts.Photos) The photos over all of the people |\n| abstract | [PhotosColumns](/reference/kotlin/android/provider/Contacts.PhotosColumns) Columns from the Photos table that other columns join into themselves. |\n| abstract | [PresenceColumns](/reference/kotlin/android/provider/Contacts.PresenceColumns) The IM presence columns with some contacts specific columns mixed in. |\n| | [Settings](/reference/kotlin/android/provider/Contacts.Settings) The settings over all of the people |\n| abstract | [SettingsColumns](/reference/kotlin/android/provider/Contacts.SettingsColumns) Columns from the Settings table that other columns join into themselves. |\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AUTHORITY](#AUTHORITY:kotlin.String) \u003cbr /\u003e |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [KIND_EMAIL](#KIND_EMAIL:kotlin.Int) Signifies an email address row that is stored in the ContactMethods table |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [KIND_IM](#KIND_IM:kotlin.Int) Signifies an IM address row that is stored in the ContactMethods table |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [KIND_ORGANIZATION](#KIND_ORGANIZATION:kotlin.Int) Signifies an Organization row that is stored in the Organizations table |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [KIND_PHONE](#KIND_PHONE:kotlin.Int) Signifies a Phone row that is stored in the Phones table |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [KIND_POSTAL](#KIND_POSTAL:kotlin.Int) Signifies a postal address row that is stored in the ContactMethods table |\n\n| Properties ||\n|---------------------------------|----------------------------------------------------------------------------------------|\n| static [Uri](../net/Uri.html#)! | [CONTENT_URI](#CONTENT_URI:android.net.Uri) The content:// style URL for this provider |\n\nConstants\n---------\n\n### AUTHORITY\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val AUTHORITY: String\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)* \n\n Value: \"contacts\"\n\n### KIND_EMAIL\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KIND_EMAIL: Int\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nSignifies an email address row that is stored in the ContactMethods table \n\n Value: 1\n\n### KIND_IM\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KIND_IM: Int\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nSignifies an IM address row that is stored in the ContactMethods table \n\n Value: 3\n\n### KIND_ORGANIZATION\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KIND_ORGANIZATION: Int\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nSignifies an Organization row that is stored in the Organizations table \n\n Value: 4\n\n### KIND_PHONE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KIND_PHONE: Int\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nSignifies a Phone row that is stored in the Phones table \n\n Value: 5\n\n### KIND_POSTAL\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KIND_POSTAL: Int\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nSignifies a postal address row that is stored in the ContactMethods table \n\n Value: 2\n\nProperties\n----------\n\n### CONTENT_URI\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_URI: Uri!\n```\n\n**Deprecated:** *see [android.provider.ContactsContract](/reference/kotlin/android/provider/ContactsContract)*\n\nThe content:// style URL for this provider"]]