Chapter 12
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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access