diff options
| author | Mike LeBeau <mlebeau@android.com> | 2010-02-02 15:27:43 -0800 |
|---|---|---|
| committer | Mike LeBeau <mlebeau@android.com> | 2010-02-02 15:27:43 -0800 |
| commit | dcfefb5db31383e557804b81e5e36f4584af7c22 (patch) | |
| tree | 83051967fb183500b2b0b7939f4168c5f1e318d0 /core/java/android/speech/RecognizerResultsIntent.java | |
| parent | f9271c8b7dfafecef6747c81aa1c9038ab51d274 (diff) | |
Add "inline" constant to RecognizerResultsIntent.
Diffstat (limited to 'core/java/android/speech/RecognizerResultsIntent.java')
| -rw-r--r-- | core/java/android/speech/RecognizerResultsIntent.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/core/java/android/speech/RecognizerResultsIntent.java b/core/java/android/speech/RecognizerResultsIntent.java index 882f213f6e3f..228258ee1580 100644 --- a/core/java/android/speech/RecognizerResultsIntent.java +++ b/core/java/android/speech/RecognizerResultsIntent.java @@ -95,11 +95,11 @@ public class RecognizerResultsIntent { * {@link #EXTRA_VOICE_SEARCH_RESULT_URLS}, if available, or else should execute a search of * its own choosing, based on the recognition result string. * - * Currently this html content should be expected in the form of an "inline:" uri for the - * Browser. In the future this may change to a "content://" uri or some other identifier. - * Anyone who reads this extra should confirm that a result is in fact an "inline:" uri and - * back off to the urls or strings gracefully if it is not, thus maintaining future backwards - * compatibility if this changes. + * Currently this html content should be expected in the form of a uri with scheme + * {@link #URI_SCHEME_INLINE} for the Browser. In the future this may change to a "content://" + * uri or some other identifier. Anyone who reads this extra should confirm that a result is + * in fact an "inline:" uri and back off to the urls or strings gracefully if it is not, thus + * maintaining future backwards compatibility if this changes. * * @hide not to be exposed immediately as the implementation details may change */ @@ -119,4 +119,11 @@ public class RecognizerResultsIntent { */ public static final String EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS = "android.speech.extras.VOICE_SEARCH_RESULT_HTML_BASE_URLS"; + + /** + * The scheme used currently for html content in {@link #EXTRA_VOICE_SEARCH_RESULT_HTML}. + * + * @hide not to be exposed immediately as the implementation details may change + */ + public static final String URI_SCHEME_INLINE = "inline"; } |
