From 1d7d0af9a1ee32f30018ed4892de58a83fedc067 Mon Sep 17 00:00:00 2001 From: Joe Malin Date: Fri, 2 Dec 2011 17:09:45 -0800 Subject: [PATCH] DOC CHANGE: Add Content URI ref doc Change-Id: I859b4bdc9d78f1f5e5769fe3fee421af2ad85778 --- core/java/android/content/ContentUris.java | 51 ++++++++++++++++++++-- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/core/java/android/content/ContentUris.java b/core/java/android/content/ContentUris.java index aa7603470b065..dbe8a7c322ae6 100644 --- a/core/java/android/content/ContentUris.java +++ b/core/java/android/content/ContentUris.java @@ -19,9 +19,54 @@ package android.content; import android.net.Uri; /** - * Utility methods useful for working with content {@link android.net.Uri}s, - * those with a "content" scheme. - */ +* Utility methods useful for working with {@link android.net.Uri} objects +* that use the "content" (content://) scheme. +* +*

+* Content URIs have the syntax +*

+*

+* content://authority/path/id +*

+*
+*
+* content: +*
+*
+* The scheme portion of the URI. This is always set to {@link +* android.content.ContentResolver#SCHEME_CONTENT ContentResolver.SCHEME_CONTENT} (value +* content://). +*
+*
+* authority +*
+*
+* A string that identifies the entire content provider. All the content URIs for the provider +* start with this string. To guarantee a unique authority, providers should consider +* using an authority that is the same as the provider class' package identifier. +*
+*
+* path +*
+*
+* Zero or more segments, separated by a forward slash (/), 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 +*
+*
+* A unique numeric identifier for a single row in the subset of data identified by the +* preceding path part. Most providers recognize content URIs that contain an id part +* and give them special handling. A table that contains a column named _ID +* often expects the id part to be a particular value for that column. +*
+*
+* +*/ public class ContentUris { /**