From 72ddba19a8fb97ac9919fead0b311e7bdcb5d703 Mon Sep 17 00:00:00 2001 From: Renat Aksitov Date: Sat, 20 Feb 2016 19:16:46 -0800 Subject: [PATCH] Voice Messaging Intent API. Adding missing items to the "integration with the Contacts Provider" section. Change-Id: I8ec8bdb356c27fbdb3575bcaf853bb834a8e77d2 --- core/java/android/provider/ContactsContract.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 904b393efce7..4b43f53ebefe 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -8763,6 +8763,15 @@ public final class ContactsContract { *
  • Note: Some apps may choose to use phone number as the unique contact ID in DATA1. * If this applies to you and you’d like phone number to be shown below the Contact Name by * the Voice Assistant, then you may choose to leave DATA3 empty.
  • + *
  • Note: If your app also uses DATA3 to display contact details in the Contacts App, + * make sure it does not include prefix text such as "Message +" or "Free Message + * +", etc. If you must show the prefix text in the Contacts App, please use a + * different DATA# column, and update your contacts.xml to point to this new column. + *
  • + *
  • Everytime the user sends a message to a contact, your app may choose to update the + * {@link ContactOptionsColumns#TIMES_CONTACTED} entry through DataUsageFeedback class. + * Doing this will allow Voice Assistant to bias speech recognition to contacts frequently + * contacted, this is particularly useful for contact names that are hard to pronounce.
  • * *

    * Input: {@link android.content.Intent#getType} is the MIME type of the data being sent. -- 2.11.0