|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.content.ContentUris
public class ContentUris
Utility methods useful for working with content Uris,
those with a "content" scheme.
| Constructor Summary | |
|---|---|
ContentUris()
|
|
| Method Summary | |
|---|---|
static Uri.Builder |
appendId(Uri.Builder builder,
long id)
Appends the given ID to the end of the path. |
static long |
parseId(Uri contentUri)
Converts the last path segment to a long. |
static Uri |
withAppendedId(Uri contentUri,
long id)
Appends the given ID to the end of the path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentUris()
| Method Detail |
|---|
public static long parseId(Uri contentUri)
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
public static Uri.Builder appendId(Uri.Builder builder,
long id)
builder - to append the ID toid - to append
public static Uri withAppendedId(Uri contentUri,
long id)
contentUri - to start withid - to append
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||