Stay organized with collections
Save and categorize content based on your preferences.
NameValueTable
class NameValueTable : BaseColumns
Known Direct Subclasses
Settings.Global |
Global system settings, containing preferences that always apply identically to all defined users.
|
Settings.Secure |
Secure system settings, containing system preferences that applications can read but are not allowed to write.
|
Settings.System |
System settings, containing miscellaneous system preferences.
|
|
Common base for tables of name/value settings.
Summary
Public methods |
open static Uri! |
|
Protected methods |
open static Boolean |
|
Constants
NAME
static val NAME: String
Value: "name"
VALUE
static val VALUE: String
Value: "value"
Public constructors
NameValueTable
NameValueTable()
Public methods
getUriFor
open static fun getUriFor(
uri: Uri!,
name: String!
): Uri!
Protected methods
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,["# Settings.NameValueTable\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNameValueTable\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/Settings.NameValueTable \"View this page in Java\") \n\n```\nclass NameValueTable : BaseColumns\n```\n\n|---|-----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.Settings.NameValueTable](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Settings.Global](/reference/kotlin/android/provider/Settings.Global), [Settings.Secure](/reference/kotlin/android/provider/Settings.Secure), [Settings.System](/reference/kotlin/android/provider/Settings.System) |-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| | [Settings.Global](/reference/kotlin/android/provider/Settings.Global) | Global system settings, containing preferences that always apply identically to all defined users. | | [Settings.Secure](/reference/kotlin/android/provider/Settings.Secure) | Secure system settings, containing system preferences that applications can read but are not allowed to write. | | [Settings.System](/reference/kotlin/android/provider/Settings.System) | System settings, containing miscellaneous system preferences. | |\n\nCommon base for tables of name/value settings.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|--------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NAME](#NAME:kotlin.String) \u003cbr /\u003e |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VALUE](#VALUE:kotlin.String) \u003cbr /\u003e |\n\n| Inherited constants ||\n|---|---|\n| From class [BaseColumns](/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) The count of rows in a directory. Type: INTEGER \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) The unique ID for a row. Type: INTEGER (long) \u003cbr /\u003e | ||\n\n| Public constructors ||\n|------------------------------------------------|---|\n| [NameValueTable](#NameValueTable())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|--------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open static [Uri](../net/Uri.html#)! | [getUriFor](#getUriFor(android.net.Uri,%20kotlin.String))`(`uri:` `[Uri](../net/Uri.html#)!`, `name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\n| Protected methods ||\n|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open static [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [putString](#putString(android.content.ContentResolver,%20android.net.Uri,%20kotlin.String,%20kotlin.String))`(`resolver:` `[ContentResolver](../content/ContentResolver.html#)!`, `uri:` `[Uri](../net/Uri.html#)!`, `name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nConstants\n---------\n\n### NAME\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val NAME: String\n``` \n\n Value: \"name\"\n\n### VALUE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val VALUE: String\n``` \n\n Value: \"value\"\n\nPublic constructors\n-------------------\n\n### NameValueTable\n\n```\nNameValueTable()\n```\n\nPublic methods\n--------------\n\n### getUriFor\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen static fun getUriFor(\n uri: Uri!, \n name: String!\n): Uri!\n```\n\nProtected methods\n-----------------\n\n### putString\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected open static fun putString(\n resolver: ContentResolver!, \n uri: Uri!, \n name: String!, \n value: String!\n): Boolean\n```"]]