Chapter 11
Simple Search Suggestion Provider
We explored the user experience of the Android search in Chapter 10. There, we explained how search applications can offer suggestions in response to user-entered search text. The components of the search applications that respond with suggestions are called suggestion providers. This chapter introduces the suggestion providers and explores a pre-built suggestion provider called SearchRecentSuggestionsProvider . In the next chapter, we will show you how to write a custom search suggestion provider from scratch.
When you are writing a suggestion provider, there are three main pieces to be concerned with. The first is a suggestion provider Java class that is responsible for returning those suggestions ...
Get Expert Android now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.