Stay organized with collections
Save and categorize content based on your preferences.
SimPhonebookContract
class SimPhonebookContract
The contract between the provider of contact records on the device's SIM cards and applications. Contains definitions of the supported URIs and columns.
Permissions
Querying this provider requires android.Manifest.permission#READ_CONTACTS
and writing to this provider requires android.Manifest.permission#WRITE_CONTACTS
Summary
Nested classes |
|
Constants for metadata about the elementary files of the SIM cards in the phone.
|
|
Constants for the contact records on a SIM card.
|
Constants |
static String |
The authority for the SIM phonebook provider.
|
Properties |
static Uri |
The content:// style uri to the authority for the SIM phonebook provider.
|
Constants
AUTHORITY
static val AUTHORITY: String
The authority for the SIM phonebook provider.
Value: "com.android.simphonebook"
Properties
AUTHORITY_URI
static val AUTHORITY_URI: Uri
The content:// style uri to the authority for the SIM phonebook provider.
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,["# SimPhonebookContract\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSimPhonebookContract\n====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/SimPhonebookContract \"View this page in Java\") \n\n```\nclass SimPhonebookContract\n```\n\n|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.SimPhonebookContract](#) |\n\nThe contract between the provider of contact records on the device's SIM cards and applications. Contains definitions of the supported URIs and columns.\n\n### Permissions\n\n\u003cbr /\u003e\n\nQuerying this provider requires [android.Manifest.permission#READ_CONTACTS](../Manifest.permission.html#READ_CONTACTS:kotlin.String) and writing to this provider requires [android.Manifest.permission#WRITE_CONTACTS](../Manifest.permission.html#WRITE_CONTACTS:kotlin.String)\n\nSummary\n-------\n\n| Nested classes ||\n|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [ElementaryFiles](/reference/kotlin/android/provider/SimPhonebookContract.ElementaryFiles) Constants for metadata about the elementary files of the SIM cards in the phone. |\n| | [SimRecords](/reference/kotlin/android/provider/SimPhonebookContract.SimRecords) Constants for the contact records on a SIM card. |\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AUTHORITY](#AUTHORITY:kotlin.String) The authority for the SIM phonebook provider. |\n\n| Properties ||\n|--------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| static [Uri](../net/Uri.html#) | [AUTHORITY_URI](#AUTHORITY_URI:android.net.Uri) The content:// style uri to the authority for the SIM phonebook provider. |\n\nConstants\n---------\n\n### AUTHORITY\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val AUTHORITY: String\n```\n\nThe authority for the SIM phonebook provider. \n\n Value: \"com.android.simphonebook\"\n\nProperties\n----------\n\n### AUTHORITY_URI\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val AUTHORITY_URI: Uri\n```\n\nThe content:// style uri to the authority for the SIM phonebook provider."]]