android.content.ContentUris
Utility methods useful for working with content Uris,
those with a "content" scheme.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
Appends the given ID to the end of the path.
Parameters
builder
| to append the ID to |
id
| to append |
public
static
long
parseId(Uri contentUri)
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.
Returns
- the long conversion of the last segment or -1 if the path is
empty
public
static
Uri
withAppendedId(Uri contentUri, long id)
Appends the given ID to the end of the path.
Parameters
contentUri
| to start with |
id
| to append |
Returns
- a new URI with the given ID appended to the end of the path