Fields Summary |
---|
public static final String | ACTION_VOICE_SEARCH_RESULTSIntent that can be sent by implementations of voice search to display the results of
a search in, for example, a web browser.
This intent should always be accompanied by at least
{@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS}, and optionally but recommended,
{@link #EXTRA_VOICE_SEARCH_RESULT_URLS}, and sometimes
{@link #EXTRA_VOICE_SEARCH_RESULT_HTML} and
{@link #EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS}.
These are parallel arrays, where a recognition result string at index N of
{@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS} should be accompanied by a url to use for
searching based on that string at index N of {@link #EXTRA_VOICE_SEARCH_RESULT_URLS},
and, possibly, the full html to display for that result at index N of
{@link #EXTRA_VOICE_SEARCH_RESULT_HTML}. If full html is provided, a base url (or
list of base urls) should be provided with {@link #EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS}. |
public static final String | EXTRA_VOICE_SEARCH_RESULT_STRINGSThe key to an extra {@link ArrayList} of {@link String}s that contains the list of
recognition alternates from voice search, in order from highest to lowest confidence. |
public static final String | EXTRA_VOICE_SEARCH_RESULT_URLSThe key to an extra {@link ArrayList} of {@link String}s that contains the search urls
to use, if available, for the recognition alternates provided in
{@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS}. This list should always be the same size as the
one provided in {@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS} - if a result cannot provide a
search url, that entry in this ArrayList should be null , and the implementor of
{@link #ACTION_VOICE_SEARCH_RESULTS} should execute a search of its own choosing,
based on the recognition result string. |
public static final String | EXTRA_VOICE_SEARCH_RESULT_HTMLThe key to an extra {@link ArrayList} of {@link String}s that contains the html content to
use, if available, for the recognition alternates provided in
{@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS}. This list should always be the same size as the
one provided in {@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS} - if a result cannot provide
html, that entry in this list should be null , and the implementor of
{@link #ACTION_VOICE_SEARCH_RESULTS} should back off to the corresponding url provided in
{@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 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. |
public static final String | EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLSThe key to an extra {@link ArrayList} of {@link String}s that contains the base url to
assume when interpreting html provided in {@link #EXTRA_VOICE_SEARCH_RESULT_HTML}.
A list of size 1 may be provided to apply the same base url to all html results.
A list of the same size as {@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS} may be provided
to apply different base urls to each different html result in the
{@link #EXTRA_VOICE_SEARCH_RESULT_HTML} list. |
public static final String | EXTRA_VOICE_SEARCH_RESULT_HTTP_HEADERSThe key to an extra {@link ArrayList} of {@link Bundle}s that contains key/value pairs.
All the values and the keys are {@link String}s. Each key/value pair represents an extra HTTP
header. The keys can't be the standard HTTP headers as they are set by the WebView.
A list of size 1 may be provided to apply the same HTTP headers to all web results. A
list of the same size as {@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS} may be provided to
apply different HTTP headers to each different web result in the list. These headers will
only be used in the case that the url for a particular web result (from
{@link #EXTRA_VOICE_SEARCH_RESULT_URLS}) is loaded. |
public static final String | URI_SCHEME_INLINEThe scheme used currently for html content in {@link #EXTRA_VOICE_SEARCH_RESULT_HTML}.
Note that this should only be used in tandem with this particular extra; it should
NOT be used for generic URIs such as those found in the data field of an Intent. |