put

open fun put(key: String, value: Uri)

add uri as string

Note that there are three “URL” classes and you need to choose wisely:

java.net.URL
Java 1.0 class to handle URLs. Tries to resolve the URL on the net. Will hang and throw exception when this fails. Try to avoid if at all possible.
java.net.URI
Java 1.4 replacement for java.net.URL. Use when you need a instance which is java.io.Serializable.
android.net.Uri
Android replacement for java.net.URL. Use when you need a instance which is android.os.Parcelable.

Parameters

key

key under which the value is stored

value

value stored

See also

android.content.ContentValues#put(String, String)

open fun put(key: String, value: Boolean)

add boolean

Parameters

key

key under which the value is stored

value

value stored

See also

android.content.ContentValues#put(String, Boolean)

open fun put(key: String, value: Array<Byte>)

Adds a value to the set.

Parameters

key

the name of the value to put

value

the data for the value to put

See also

android.content.ContentValues#put(String, byte[])

open fun put(key: String, value: Double)

add double

Parameters

key

key under which the value is stored

value

value stored

See also

android.content.ContentValues#put(String, Double)

open fun put(key: String, value: Float)

add float

Parameters

key

key under which the value is stored

value

value stored

See also

android.content.ContentValues#put(String, Float)

open fun put(key: String, value: Integer)

add integer

Parameters

key

key under which the value is stored

value

value stored

See also

android.content.ContentValues#put(String, Integer)

open fun put(key: String, value: URI)
open fun put(key: String, value: URL)

add url as string

Note that there are three “URL” classes and you need to choose wisely:

java.net.URL
Java 1.0 class to handle URLs. Tries to resolve the URL on the net. Will hang and throw exception when this fails. Try to avoid if at all possible.
java.net.URI
Java 1.4 replacement for java.net.URL. Use when you need a instance which is java.io.Serializable.
android.net.Uri
Android replacement for java.net.URL. Use when you need a instance which is android.os.Parcelable.

Parameters

key

key under which the value is stored

value

value stored

See also

android.content.ContentValues#put(String, String)

open fun put(key: String, value: Date)

add date as long

Parameters

key

key key under which the value is stored

value

value value stored

See also

android.content.ContentValues#put(String, Long)

open fun put(key: String, value: Long)

add long

Parameters

key

key key under which the value is stored

value

value value stored

See also

android.content.ContentValues#put(String, Long)

open fun put(key: String, value: String)

add string

Parameters

key

key key under which the value is stored

value

value value stored