From bb54929f76dab7d64c817df32cfbd353e1ae0be6 Mon Sep 17 00:00:00 2001 From: Dmitri Plotnikov Date: Mon, 18 Oct 2010 20:37:02 -0700 Subject: [PATCH] Adding Insert.DATA extra for new/edit contact intents. This is a way to supply any amount of arbitrary initial values for the newly created contacts or additional data for an existing contact. Change-Id: Iec050cf9177be2ffb115e473dcd43ef37e5bbd5e --- core/java/android/provider/ContactsContract.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 36e2c56535138..baf350562a618 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -6642,6 +6642,19 @@ public final class ContactsContract { *

Type: boolean

*/ public static final String IM_ISPRIMARY = "im_isprimary"; + + /** + * The extra field that allows the client to supply multiple rows of + * arbitrary data for the contact (insert or edit). It is a list of + * ContentValues, one per data row. Supplying this extra is + * basically equivalent to inserting multiple rows into the + * {@link Data} table, except the user gets a chance to see and edit + * them before saving. Each ContentValues object must have a value + * for {@link Data#MIMETYPE}. + * + * @hide + */ + public static final String DATA = "data"; } } }