From 378ae126d9d61feed77ad596fa0823394eac6240 Mon Sep 17 00:00:00 2001 From: Mike LeBeau Date: Thu, 11 Feb 2010 14:01:09 -0800 Subject: [PATCH] Add SERVICE_INTERFACE and SERVICE_META_DATA constants to RecognitionService, to be used by anyone implementing a voice recognition service. Also define a new styleable to be used in such service's metadata xml. Still to do: Change VoiceSearch's GoogleRecognitionService to respond to this intent, and actually use this intent instead of ACTION_RECOGNIZE_SPEECH here in RecognitionService. --- api/current.xml | 22 +++++++++++++++++++ .../android/speech/RecognitionService.java | 14 ++++++++++++ core/res/res/values/attrs.xml | 12 +++++++--- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/api/current.xml b/api/current.xml index b2a2bc1d376f4..b62cc9ad8389d 100644 --- a/api/current.xml +++ b/api/current.xml @@ -135928,6 +135928,28 @@ + + + + <{@link android.R.styleable#RecognitionService recognition-service}> tag. + */ + public static final String SERVICE_META_DATA = "android.speech"; /** Log messages identifier */ private static final String TAG = "RecognitionService"; diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 794a9f0afcb42..ff8cdc9d392b5 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -1452,7 +1452,7 @@ included in that tag. --> + the settings for this service. --> @@ -3494,8 +3494,6 @@ meta-data entry. Described here are the attributes that can be included in that tag. --> - @@ -3586,5 +3584,13 @@ + + + + +