See Also: SearchRecentSuggestions Members
This is a utility class providing access to Android.Content.SearchRecentSuggestionsProvider.
Unlike some utility classes, this one must be instantiated and properly initialized, so that it can be configured to operate with the search suggestions provider that you have created.
Typically, you will do this in your searchable activity, each time you receive an incoming Android.Content.Intent.ActionSearch Intent. The code to record each incoming query is as follows:
java Example
SearchSuggestions suggestions = new SearchSuggestions(this, MySuggestionsProvider.AUTHORITY, MySuggestionsProvider.MODE); suggestions.saveRecentQuery(queryString, null);
For a working example, see SearchSuggestionSampleProvider and SearchQueryResults in samples/ApiDemos/app.
For information about using search suggestions in your application, read the Adding Recent Query Suggestions developer guide.