![]() ![]() Once your app is installed, the user must * enable it as a "searchable item" in the Search settings in order to receive your app's * suggestions in Quick Search Box. * * Important Note: By default, your application will not be enabled as a suggestion * provider (or "searchable item") in Quick Search Box. Beyond that, here are some more details of how * suggestions interact with Quick Search Box, and optional ways that you may customize suggestions * for your application. * * * Exposing Search Suggestions to Quick Search Box * * Once your application is set up to provide search suggestions, making them available to the * globally accessable Quick Search Box is as easy as setting android:includeInGlobalSearch to * "true" in your searchable metadata file. * * * Other Columns * Finally, if you have defined any Action Keys and you wish * for them to have suggestion-specific definitions, you'll need to define one -553,6 581,68 query text is provided and the SUGGEST_COLUMN_INTENT_DATA values are not suitable for user * inspection and editing. Only applicable to sources included in Quick Search Box. * * * #SUGGEST_COLUMN_SPINNER_WHILE_REFRESHING} * This column is used to specify that a spinner should be shown in lieu of an icon2 * while the shortcut of this suggestion is being refreshed in Quick Search Box. Read more about shortcut * refreshing in the section about * exposing search suggestions to * Quick Search Box. * Otherwise, the shortcut id will be used to check back for for an up to date * suggestion using #SUGGEST_URI_PATH_SHORTCUT}. If set to * #SUGGEST_NEVER_MAKE_SHORTCUT}, the result will not be stored as a shortcut. If missing, the result will be * stored as a shortcut and never refreshed. Shortcuts are usually formed when the * user clicks a suggestion from Quick Search Box. * * * #SUGGEST_COLUMN_SHORTCUT_ID} * This column is used to indicate whether a search suggestion should be stored as a * shortcut, and whether it should be validated. In certain situations - for example, when no query text has been typed yet -480,6 488,26 #ACTION_SEARCH ACTION_SEARCH}, optional otherwise. This would generally be based on partial matches in * the available data. * * The primary form of suggestions is known as queried suggestions and is based on query * text that the user has already typed. See * Exposing Search Suggestions to Quick Search * Box for more details. -4123,6 4123,17 > How Search Is Invoked * Implementing Search for Your App * Search Suggestions * Exposing Search Suggestions to * Quick Search Box * Action Keys * Searchability Metadata * Passing Search Context -246,6 248,12 Summaries of possible results * * * Once an application is configured to provide search suggestions, those same suggestions can * easily be made available to the system-wide Quick Search Box, providing faster access to its * content from one central prominent place. ![]() (full releases only) -framework_docs_SDK_VERSION:=1.5 framework_docs_SDK_VERSION:=1.6 # release version (ie "Release x") (full releases only) -framework_docs_SDK_REL_ID:=3 framework_docs_SDK_REL_ID:=1 # name of current SDK directory (full releases only) framework_docs_SDK_CURRENT_DIR:=$(framework_docs_SDK_VERSION)_r$(framework_docs_SDK_REL_ID) # flag to build offline docs for a preview release -framework_docs_SDK_PREVIEW:=true framework_docs_SDK_PREVIEW:=0 framework_docs_LOCAL_DROIDDOC_OPTIONS = \ -hdf sdk.version $(framework_docs_SDK_VERSION) \ diff -git a/api/4.xml b/api/4.xml -352,6 352,8 "Lunar Lander" \ -samplecode $(sample_dir)/NotePad \ guide/samples/NotePad "Note Pad" \ -samplecode $(sample_dir)/SearchableDictionary \ guide/samples/SearchableDictionary "Searchable Dictionary" \ -samplecode $(sample_dir)/Snake \ guide/samples/Snake "Snake" \ -samplecode $(sample_dir)/SoftKeyboard \ -359,13 361,13 SDK version identifiers used in the published docs # major version for current SDK.
0 Comments
Leave a Reply. |