java.lang.Object | |
↳ | android.content.ContentUris |
Utility methods useful for working with
Uri
objects
that use the "content" (content://) scheme.
Content URIs have the syntax
content://
authority
/
path
/
id
content:
ContentResolver.SCHEME_CONTENT
(value
content://
).
/
), that identify
some subset of the provider's data. Most providers use the path part to identify
individual tables. Individual segments in the path are often called
"directories" although they do not refer to file directories. The right-most
segment in a path is often called a "twig"
_ID
often expects the id part to be a particular value for that column.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Appends the given ID to the end of the path.
|
||||||||||
|
Converts the last path segment to a long.
|
||||||||||
|
Appends the given ID to the end of the path.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Appends the given ID to the end of the path.
builder | to append the ID to |
---|---|
id | to append |
Converts the last path segment to a long.
This supports a common convention for content URIs where an ID is stored in the last segment.
UnsupportedOperationException | if this isn't a hierarchical URI |
---|---|
NumberFormatException | if the last segment isn't a number |
Appends the given ID to the end of the path.
contentUri | to start with |
---|---|
id | to append |