diff options
| author | 2009-08-07 09:47:35 -0700 | |
|---|---|---|
| committer | 2009-08-07 09:47:35 -0700 | |
| commit | 5d1e4c4db0e445835e89cf223cebb9fe09304012 (patch) | |
| tree | 3176ec1f59a05b04b16bd603fc610d1de8668060 | |
| parent | 38028f2e28907872b9ae20c587923aec91637d0b (diff) | |
| parent | d4e0b5713add447bbba7d716c112f425d6888f3b (diff) | |
Merge change 20381
* changes:
Clean-up of API for filtering contacts by phone or email. The api is now symmetrical.
| -rw-r--r-- | core/java/android/provider/ContactsContract.java | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index b5fa577041d4..9b0c70ead0ce 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -432,6 +432,7 @@ public final class ContactsContract { * * @hide */ + @Deprecated public static final Uri CONTENT_FILTER_EMAIL_URI = Uri.withAppendedPath(CONTENT_URI, "filter_email"); @@ -642,13 +643,13 @@ public final class ContactsContract { * Reference to the {@link RawContacts#_ID} this presence references. * <P>Type: INTEGER</P> */ - public static final String RAW_CONTACT_ID = "raw_contact_id"; + public static final String RAW_CONTACT_ID = "presence_raw_contact_id"; /** * Reference to the {@link Data#_ID} entry that owns this presence. * <P>Type: INTEGER</P> */ - public static final String DATA_ID = "data_id"; + public static final String DATA_ID = "presence_data_id"; /** * The IM service the presence is coming from. Formatted using either @@ -950,6 +951,22 @@ public final class ContactsContract { /** MIME type used when storing this in data table. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/email"; + /** + * The content:// style URI for all data records of the + * {@link Email#CONTENT_ITEM_TYPE} MIME type, combined with the + * associated raw contact and aggregate contact data. + */ + public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, + "emails"); + + /** + * The content:// style URL for filtering data rows by email address. The + * filter argument should be passed as an additional path segment after + * this URI. + */ + public static final Uri CONTENT_FILTER_EMAIL_URI = Uri.withAppendedPath(CONTENT_URI, + "filter"); + public static final int TYPE_HOME = 1; public static final int TYPE_WORK = 2; public static final int TYPE_OTHER = 3; @@ -1230,7 +1247,7 @@ public final class ContactsContract { public static final int TYPE_ANNIVERSARY = 1; public static final int TYPE_OTHER = 2; - + /** * The event start date as the user entered it. * <P>Type: TEXT</P> |