Custom Search Suggestion Provider
Android search is too flexible not to customize it. Because we used a pre-built suggestion provider in the last chapter, many customizable features of a suggestion provider were hidden in the SearchRecentSuggestionsProvider and not discussed. We explore these details in this chapter by implementing a custom suggestion provider called a SuggestUrlProvider.
We start by explaining how SuggestUrlProvider is expected to work. We will give you all the necessary code snippets to implement the provider, and these snippets should provide a detailed idea of how to build a custom suggestion provider. We will also show you how this custom suggestion provider is put to use by showing it in a sample application. ...